应该使用什么命令通过squid通过SSH进行连接?

我已经build立了一个Squid的HTTP代理(在centOS),并打算使用它也用于SSH连接。

pipe理configuration腻子(在Windows客户端)使用此代理时,通过SSH连接。 在“目标主机”确认ssh连接来自代理服务器ip而不是windows客户端IP。

用过的:

我现在有问题连接到“目标主机”使用Ubuntu和相同的代理服务器。

我已经尝试了以下内容:

me@mycomp:~$ connect-proxy -H test@proxyserv:3128 targethost 22 Enter proxy authentication password for test@proxyserv: SSH-2.0-OpenSSH_6.2p2 Ubuntu-6 

它挂在最后一行,期待一些input。 所有的尝试都导致了“协议不匹配”。 错误。

腻子成功连接到http代理并发送凭证,显示我马上sshlogin。 – 怎么做(在Ubuntu中的命令)相同的腻子呢? – 有没有其他的方法比connect-proxy命令做到这一点?

编辑:也尝试了以下相同的结果(“协议不匹配”)

 me@mycomp:~$ connect-proxy -H test@proxyserv:3128 targethost 22 ssh -l myshel_login 

提前致谢

编辑:解决scheme细节 (感谢NickW指向正确的方式)

安装了开瓶器并添加到ssh_config

 Host targethost ProxyCommand corkscrew proxyserv 3128 %h %p /etc/ssh/proxypass 

创build了proxypass文件

 login:password 

重新启动ssh并使用一个简单的ssh命令

 ssh mylogin@targethost 

(像往常一样询问ssh密码)

您可能想要将开瓶器添加到您的Ubuntu盒子,并添加以下行:

ProxyCommand / usr / local / bin / corkscrew proxy.work.com 80%h%p

到你的.ssh / config文件。