nano /etc/ssh/sshd_config

找到#PermitRootLogin一行 改成PermitRootLogin yes,也就是删掉前端的注释并做改后面的值为yes

删掉#PasswordAuthentication yes前面的#

sudo service ssh restart

标签: none

添加新评论