ssh访问某机器时,会得到以下错误信息:
[root@stormnimbus opt]# ssh hregion92
ssh_exchange_identification: Connection closed by remote host
得到以上错误提示,是因为要远程ssh访问的机器限制你的ssh访问。
解决方法:
修改/etc/hosts.allow文件,将你要ssh访问的机器ip添加进去,比如:
sshd:192.168.60.151,192.168.70.92
本文介绍了一种常见的SSH远程访问失败的问题及解决方法。当尝试通过SSH连接到远程主机时,如果遇到“Connection closed by remote host”的错误提示,可以通过编辑/etc/hosts.allow文件并添加允许访问的IP地址来解决问题。
ssh访问某机器时,会得到以下错误信息:
[root@stormnimbus opt]# ssh hregion92
ssh_exchange_identification: Connection closed by remote host
得到以上错误提示,是因为要远程ssh访问的机器限制你的ssh访问。
解决方法:
修改/etc/hosts.allow文件,将你要ssh访问的机器ip添加进去,比如:
sshd:192.168.60.151,192.168.70.92
8万+
1196

被折叠的 条评论
为什么被折叠?