通过代理ssh'ing,但没有find连接

我从一张名片cd iso安装debian(基本上是一个非常简洁的版本)。

我试图通过代理(设置在我的.ssh / config)ssh到一台机器,但我收到一个错误:

ssh [email protected] -v OpenSSH_5.5p1 Debian-6+squeeze2, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /home/user/.ssh/config debug1: Applying options for servername.com debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Executing proxy command: exec connect -S proxy-im.proxyhost.com:1080 servername.com 22 debug1: permanently_drop_suid: 1000 debug1: identity file /home/user/.ssh/id_rsa type -1 debug1: identity file /home/user/.ssh/id_rsa-cert type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 debug1: identity file /home/user/.ssh/id_dsa-cert type -1 /bin/bash: line 0: exec: connect: not found ssh_exchange_identification: Connection closed by remote host 

看来我的机器上没有安装叫做“connect”的命令。 这是命令的手册: http : //perkamon.alioth.debian.org/online/man2/connect.2.php

apt-get安装连接失败。 它是否是其他软件包的一部分? 如果是这样,我怎么find它?

我只是在stream行的search引擎中search“apt-get install connect”,并自动完成“apt-get install connect-proxy”

我仍然希望能够通过手册页来了解这个命令包含的内容,否则有人会如何跟踪这些内容。

我通常会find要安装哪个软件包以获取特定命令的方式是使用command-not-found软件包。 可以通过input以下命令来安装:

 apt-get install command-not-found 

安装command-not-found并重新启动bash我可以简单地键入connectfind所需的包的名称:

 $ connect The program 'connect' is currently not installed. You can install it by typing: sudo apt-get install connect-proxy 

也许你发现错误的configuration文件或教程。 尝试使用nc(nectat)和ProxyCommand:

ProxyCommand / usr / bin / nc -X connect -x 192.0.2.0:8080%h%p

或从shell

ssh -v -i〜/ .ssh / my_Favorite_key.pem -o ProxyCommand ='nc -x jumphost:30022%h%p'user @ dst_host_name

在较新的ssh版本(从7.3开始)中,您可以使用ProxyJump,请参阅ssh_config手册页以获取详细信息。 另一个很好的教程是https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts

在这里你find解决scheme

ssh USER@FINAL_DEST -o "ProxyCommand=nc -X connect -x PROXYHOST:PROXYPORT %h %p”