我位于限制访问Internet的防火墙后面,并且允许我们访问Internet的唯一方法是通过端口8080通过代理服务。现在,我使用的是开瓶器,它允许我通过SSH和使用开瓶器,但是我无法隧道连接到DigitalOcean的服务器,而从非限制性Internet上,我可以访问两个服务器。谁能帮我解决这个问题?
这是通过-v
命令运行ssh时的日志:
ssh -vvv XXXX@XXXXX -p 443
OpenSSH_6.5, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 49: Applying options for *
debug1: /etc/ssh_config line 53: Applying options for 128.199.203.97
debug1: Executing proxy command: exec corkscrew proxy.ac.in 8080 1.199.203.97 443 /bin/.corkscrew-auth
debug1: permanently_drop_suid: 1001
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/Blueelvis_RoXXX/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_rsa type 1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_rsa-cert type -1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_dsa type -1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_dsa-cert type -1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_ecdsa type -1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_ed25519 type -1
debug1: identity file /home/Blueelvis_RoXXX/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.5
Proxy could not open connnection to 1.99.203.97: Proxy Authentication Required
ssh_exchange_identification: Connection closed by remote host
通过相同的参数连接到Amazon EC2时,我可以通过它进行隧道传输,但不能通过此隧道进行传输。连接到Amazon实例时,没有收到任何要求的代理身份验证错误,但是当我连接到DigitalOcean服务器时,却出现了错误。知道发生了什么,为什么?
我在Windows上运行CYGWIN
通过使用名为CNTLM的程序解决了该问题。该程序可以在这里下载
INI
文件配置为所需的代理设置,并确保侦听地址所在的行不以开头#
。127.0.0.1 3128
。127.0.0.1
corkscrew3128
是使用的程序,是CNTLM中配置的侦听地址,是CNTLM侦听该地址的端口。按照这些步骤,我立即与Digital Ocean的服务器建立了连接。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句