problem with ssh
Linux 2006/05/24 14:01 今天遇到一个奇怪的问题,我在一台linux主机上执行
ssh xxx.xxx.xxx.xxx
会出现如下错误:
ssh_exchange_identification: Connection closed by remote host
以前从来没见过这个问题,不过还好通过google找到了解决办法,原来是在远程的主机上的/etc/hosts.allow里面需要开通对ip限制,才能登陆上ssh。
在主机的/etc/hosts.allow里面添加上一行:
ALL : xxx.xxx.xxx.0/255.255.255.0 : allow
就ok了,原来这么简单,晕啊....
ssh xxx.xxx.xxx.xxx
会出现如下错误:
ssh_exchange_identification: Connection closed by remote host
以前从来没见过这个问题,不过还好通过google找到了解决办法,原来是在远程的主机上的/etc/hosts.allow里面需要开通对ip限制,才能登陆上ssh。
在主机的/etc/hosts.allow里面添加上一行:
ALL : xxx.xxx.xxx.0/255.255.255.0 : allow
就ok了,原来这么简单,晕啊....

