打开配置文件 /etc/ssh/sshd_config (ubuntu 为/etc/ssh/sshd-config):
PermitRootLogin yes
PubkeyAuthentication no (也可用#号注释)
PasswordAuthentication yes
重启sshd服务
service sshd restart
打开配置文件 /etc/ssh/sshd_config (ubuntu 为/etc/ssh/sshd-config):
PermitRootLogin yes
PubkeyAuthentication no (也可用#号注释)
PasswordAuthentication yes
重启sshd服务
service sshd restart