ubuntu下openssl客户端通过代理服务器访问远程主机

问题:

    公司内网访问外部网站需要有代理,代理服务器为proxy.com:8000。

    现在有一台外网ssh服务器,需要从内网访问。

    直接ssh username@server:port无法连接。

解决办法:

    1. 安装connnect_proxy:sudo apt-get install connect-proxy

    2. 修改config文件:vim ~/.ssh/config,加入以下内容:

        ProxyCommand connect -H proxy.com:8000 %h %p

    3. 然后就可以连接了:ssh username@server:port


你可能感兴趣的:(server,ubuntu,ssh,服务器,vim)