码迷,mamicode.com
首页 > 其他好文 > 详细

SSH通过代理连接

时间:2017-11-07 23:02:43      阅读:268      评论:0      收藏:0      [点我收藏+]

标签:configure   comm   ace   更改   color   ica   二次   html   配置到   

从目前网上的资料来看,通过代理来连接ssh有2种方式:

先来介绍一下Corkscrew

 1.解压并编译安装:

wget http://www.agroman.net/corkscrew/corkscrew-2.0.tar.gztar -xzvf corkscrew-2.0.tar.gz
cd corkscrew
./configure
make install

2.添加配置到ssh用户目录,/root/.ssh/config (编辑该配置文件)写入:

Host *
ProxyCommand corkscrew http-proxy.example.com 8080 %h %p

注意http-proxy.example.com为http代理地址(例如proxy.cmcc)根据实际更改,后面的8080为http代理端口。接下来就可以直接连接了:

ssh root@112.33.9.154  -p 22

在第二次登录时就可看到上次登录ip,从而判断是否是通过代理连接了。

 

参考:

http://www.cnblogs.com/JoJosBizarreAdventure/p/5892355.html

http://bolg.malu.me/html/2011/1809.html

 

SSH通过代理连接

标签:configure   comm   ace   更改   color   ica   二次   html   配置到   

原文地址:http://www.cnblogs.com/domestique/p/7801519.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!