操作步骤
- 安装openssh服务端
sudo apt-get install openssh-server
- 编辑配置文件/etc/ssh/sshd_config改PermitRootLogin为yes
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
- 重启服务
/etc/init.d/ssh restart
sudo apt-get install openssh-server
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
/etc/init.d/ssh restart