sshd

今天登陆个linux服务器,发现了几个问题。

1:刚开始忘记了密码。登陆了几次,就提示什么连接自动关闭。到后来才看了日志,才发现是我的ip加入到了/etc/hosts.deny文件中。是个服务自动加入的。

2:ssh自动登陆怎么不行?也是查看了日志,发现:

Feb 10 22:46:52 localhost sshd[27375]: Authentication refused: bad ownership or modes for file /root/.ssh/authorized_keys

是这文件的权限有问题了。改了后又提示:

Authentication refused: bad ownership or modes for directory /root

/root 目录的权限也改了。修改后一切正常。

好久不玩linux,一些都陌生了。

如果不从事这项工作,linux可就完全放弃了。

请选择你看完该文章的感受:

不错 超赞 无聊 扯淡 不解 路过

随机文章:

发表评论