也同样是用为对某个文件误操作后出现的问题,当secureCRT报这个错并且IP可ping通说明linux没有启动sshd
可用ps -e |grep ssh 检查sshserver是否开启,发现只有ssh-agent则说明sshserver没有开启,这个时候可使用/etc/init.d/ssh start 开启。
但是又出现了新的问题:
开启不成功,又如下提示
permissions 0777 for '/etc/ssh/ssh_host_key'are too open
It is recommended that your private key files are not accessible by others
...ssh_host_rsa_key...
... ...
...ssh_host_dsa_key...
sshd: no hostkeys available -- exiting
这又是权限引发的血案,立刻修改
chmod 600 sshd_config ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
chmod 520 moduli
chmod 644 ssh_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
service sshd start
到此问题才总算解决了