putty远程连接Red Hat Enterprise Linux 出现remote side unexpected closed network-connection错误
查看日志文件/val/log/secure
tail -F /var/log/secure
再次使用putty连接,发现错误fatal : No supported key exchange algorithm[preauth]
解决办法/n
使用root用户登录系统,切换目录到/etc/ssh,将所有带key的文件备份(防止出现错误)然后删除,再重启ssh服务
[root@localhost /]
[root@localhost ssh]
总用量 280
-rw-r--r--. 1 root root 242153 9月 25 2015 moduli
-rw-r--r--. 1 root root 2208 9月 25 2015 ssh_config
-rw-------. 1 root root 4361 9月 25 2015 sshd_config
-rw-r-----. 1 root ssh_keys 227 5月 24 00:44 ssh_host_ecdsa_key
-rw-r--r--. 1 root root 162 5月 24 00:44 ssh_host_ecdsa_key.pub
-rw-r-----. 1 root ssh_keys 387 5月 24 00:44 ssh_host_ed25519_key
-rw-r--r--. 1 root root 82 5月 24 00:44 ssh_host_ed25519_key.pub
-rw-r-----. 1 root ssh_keys 1675 5月 24 00:44 ssh_host_rsa_key
-rw-r--r--. 1 root root 382 5月 24 00:44 ssh_host_rsa_key.pub
[root@localhost ssh]
[root@localhost ssh]
[root@localhost ssh]
[root@localhost ssh]
这时再使用putty即可登录成功
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)