linux

ssh连接root用户权限被拒绝

连接错误

ssh连接linux服务器root用户出现权限被拒绝。

解决方案

修改配置文件/etc/ssh/sshd_config,将permitRootLogin设置为yes。

PermitRootLogin yes

修改完重启下即可

systemctl restart sshd

连接成功

一条评论

  • marizon ilogert

    Hey! This is my first comment here so I just wanted to give a quick shout out and tell you I genuinely enjoy reading through your articles. Can you recommend any other blogs/websites/forums that go over the same topics? Thanks!

Leave a Reply

邮箱地址不会被公开。