简体   繁体   English

连接到SSH远程主机(位于VPN网络中)超时

[英]Connect to ssh remote host (which is in vpn network) times out

I try to connect to a ssh host which is located in a remote vpn network. 我尝试连接到位于远程VPN网络中的SSH主机。 Once connected with my vpn client I am able to ping the ssh host. 与我的vpn客户端连接后,我就可以ping通ssh主机。 The ssh connection via a remote desktop session from a different machine within the vpn network works fine. 通过VPN网络内另一台计算机通过远程桌面会话进行ssh连接可以正常工作。 SuSEfirewall2 is configured for routing port 22 to the sshd service. SuSEfirewall2配置为将端口22路由到sshd服务。

When I now try to ssh from my vpn client machine, the operation times out: 现在,当我尝试从我的vpn客户端计算机上使用ssh时,操作超时:

ssh: connect to host xxx.xxx.61.xx port 22: Operation timed out

The IP address that I get from the vpn client is xxx.xxx.60.xx! 我从vpn客户端获得的IP地址是xxx.xxx.60.xx!

Is there anything that needs to be considered for ssh-service setup when the host is within a remote vpn network? 当主机位于远程VPN网络中时,是否需要考虑任何用于ssh服务设置的内容?

No, VPN should not make any difference. 不,VPN不会有任何区别。

The fact that ping works but ssh doesn't seems to suggest at a problem with your firewall-config for ssh service. ping有效但ssh的事实似乎并不表明您的ssh服务的防火墙配置有问题。

Can you use the ssh service from the ssh-server itself or local network? 您可以通过ssh服务器本身还是本地网络使用ssh服务?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从Paramiko中的SSH会话连接到远程主机 - Connect to a remote host from a SSH session in Paramiko Net :: SSH似乎未连接到远程主机 - Net::SSH does not seem to connect to remote host 使用现有的SSH连接来连接到远程主机 - Using existing SSH connection to connect to remote host scp 到远程服务器; ssh:连接到主机 server@address.it 端口 22:连接超时 - scp to a remote server; ssh: connect to host server@address.it port 22: Connection timed out 调用PERL脚本,该脚本使用SSH连接到主机 - Call a PERL script which connect to a host with SSH ssh:连接到主机 github.com 端口 22:连接超时致命:无法从远程存储库读取 - ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository ssh:连接到主机 gist.github.com 端口 22:操作超时致命:无法从远程存储库读取 - ssh: connect to host gist.github.com port 22: Operation timed out fatal: Could not read from remote repository ssh:连接到主机localmachine端口22:网络无法访问错误 - ssh: connect to host localmachine port 22: Network is unreachable Error ssh:连接到主机 gitlab.com 端口 22:网络不可达 - ssh: connect to host gitlab.com port 22: Network is unreachable 尝试通过 SSH 连接到远程主机时出错 - Error while trying to connect via SSH to remote host
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM