1、安装OpenSSH server
在线安装命令:sudo apt-get install openssh-server
2、修改配置文件
命令:sudo vim /etc/ssh/sshd_config
3、找到PermitRootLogin no一行,改为PermitRootLogin yes
有些版本是PermitRootLogin prohibit-password,有些是:PermitRootLogin without-passwd
4、重启 openssh server
命令:sudo service ssh restart
1359

被折叠的 条评论
为什么被折叠?



