ssh_exchange_identification:远程主机关闭连接

时间:2011-07-26 19:29:46

标签: ssh windows-xp openssh

我刚刚在Windows XP机器上设置了openssh,我正试图从远程机器上访问它。虽然我可以telnet到远程机器并且当实际在远程机器上执行“ssh localhost”时,当我尝试从我的Mac进行SSH时,我得到...

davea-mbp2:~ davea$ ssh developer@remote_ip
ssh_exchange_identification: Connection closed by remote host

我已将我的IP添加到/etc/hosts.allow文件...

#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
#               CYGWIN note: if you use a software firewall (such
#               as ZoneAlarm or the "Windows Firewall" in Windows
#               XP), you must also open a 'hole' at the proper
#               port for the services you enable below.
#
ALL : localhost 127.0.0.1/32 [::1]/128 [::ffff:127.0.0.1]/128 : allow
ALL : PARANOID : deny
sshd: ALL : allow

sshd: my_local_network_ip
sshd: my_ip

以下是我/etc/hosts.deny文件的内容......

#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
ALL:ALL EXCEPT localhost:DENY

我有什么想法可以修改这些文件或者可能做其他事情以允许我登录?

0 个答案:

没有答案