ubuntu下openssl客户端通过代理服务器访问远程主机
2012-06-25 10:24
561 查看
问题:
公司内网访问外部网站需要有代理,代理服务器为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
公司内网访问外部网站需要有代理,代理服务器为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
相关文章推荐
- 通过Ubuntu的SSH命令访问远程主机
- socket C/C++编程(1)通过服务器的外网ip,对服务器进行远程端口的登录访问(以win10客户端远程访问外网ubuntu服务器为例)
- Ubuntu 之间通过 VNC 远程访问
- windows下无法通过VNC客户端软件远程连接Ubuntu14.04的桌面共享服务
- windows下通过VNC客户端软件远程连接Ubuntu14.04的桌面共享服务vino
- Windows通过远程桌面访问Ubuntu
- windows下通过VNC客户端软件远程连接Ubuntu14.04的桌面共享服务
- 让远程主机可以通过网络访问sshd服务
- windows下通过VNC远程访问桌面Ubuntu14.04
- windows通过VNC访问远程ubuntu14.04 server服务器
- vscode 通过 WIN10 ubuntu子系统(Bash On Windows)管理远程主机
- mac通过ssh远程登录腾讯云ubuntu主机服务
- Ubuntu13.10 通过XDMCP访问远程桌面 destop
- Ubuntu10.04与Win 7通过VNC进行远程桌面的相互访问
- windows通过VNC访问远程ubuntu14.04 server服务器
- 在xp上通过vmware装ubuntu,并让ubuntu通过代理服务器访问Internet
- Redis如何通过本机客户端访问远程服务器端
- Ubuntu下本地ipython notebook通过ssh远程访问远程服务器
- Windows通过VNC远程桌面访问Ubuntu