SSH不能仅通过VPN工作

编辑:SSH公钥设置是一个红色的鲱鱼。 我实际上无法通过Junos Pulse VPN连接SSH,甚至没有存储我的SSH密钥,无密码login。

我有一个SSH公钥设置在我常规SSH工作的UNIX机器上,这样我就可以快速login而不必input密码。 当我在办公室通过以太网连接时,它工作得很好。 但是,当我通过VPN进行连接时,无论从家中还是从工作中,无论是无线还是以太网,我都会遇到这个错误:

mstills:~/ $ ssh -v <IP> [11:00:18] OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: Connecting to ------- [--------] port 22. debug1: Connection established. debug1: identity file /Users/mstills/.ssh/id_rsa type 1 debug1: identity file /Users/mstills/.ssh/id_rsa-cert type -1 debug1: identity file /Users/mstills/.ssh/id_dsa type -1 debug1: identity file /Users/mstills/.ssh/id_dsa-cert type -1 ssh_exchange_identification: Connection closed by remote host 

这里没有太多的信息可以使用。 我可以通过Googlefind我最近的问题是: https : //supportforums.cisco.com/thread/2068758

但我无法弄清楚如何应用这个解决scheme。 我用来连接到VPN(如果相关)的客户端是Junos Pulse。 我刚刚开始使用它,我用来连接到VPN的旧客户端似乎接受SSH密钥没有问题。

编辑:这个问题绝对只有在使用Junos Pulse VPN客户端时才会发生。 也许它与hosts文件有关? 我不知道…

最有可能的tcpwrapper问题。 您需要检查/etc/hosts.deny/etc/hosts.allow文件。 检查特定IP地址是否允许ssh,特别要注意sshdALL:ALL等参数。