8

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

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

我已将我的 IP 添加到 /etc/hosts.allow 文件中……</p>

#
# 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 文件的内容……</p>

#
# 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

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

4

0 回答 0