sshd连接不上

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xxzhaobb/article/details/85223605

现象:sshd服务器的时候,发现已经建立连接了,然后就立刻断开了 。重新连接也是这样。

在启动sshd服务的时候,提示/var/empty/sshd must be owned by root and not group or world-writable。

回想了之前的操作,是因为修改了/var目录的权限为777,属主为root:root。

解决方法:

chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart

END 

猜你喜欢

转载自blog.csdn.net/xxzhaobb/article/details/85223605
今日推荐