ubuntu安装ssh,ssh-server后使用root密码无法登陆

sudo vim /etc/ssh/sshd_config

PermitRootLogin prohibit-password

改为

PermitRootLogin yes

最后的Authentication如下

最后执行

sudo service ssh restart
发布了142 篇原创文章 · 获赞 53 · 访问量 20万+

猜你喜欢

转载自blog.csdn.net/qq_23301703/article/details/100120400