简介:在Ubuntu上安装SSH服务并开启root用户SSH登录的步骤。
要在Ubuntu上安装SSH服务,请按照以下步骤操作:
sudo apt update
sudo apt install openssh-server
如果看到“active (running)”字样,表示SSH服务已经启动。
sudo systemctl status ssh
sudo nano /etc/ssh/sshd_config
PermitRootLogin yes
sudo systemctl restart ssh