有时你想登陆到serverA,但serverA白名单,你刚刚从山寨机B登陆了,因此每次你要登陆到serverA。您必须先登陆到山寨机B。而后登陆到serverA。session
咱们可以用Putty的local proxy来设置每次登陆到serverA的时候,本身主动先登陆到堡垒机B,而后以堡垒机B做为代理在登陆到serverA,因此从用户的角度看。这样每次就可以直接登陆到serverA了。spa
好如下来看一下怎么设置。.net
首先设置本身主动登陆到堡垒机的设置,这个寻常的设置没什么差异。代理
若是这个设置在Putty里叫作load-bastion-session.server
而后咱们開始创建登陆到serverA的设置,需要作的额外工做是在Putty里的Connection->Proxy->Proxy type选择local。blog
下边的telnet command, or local proxy command写上:get
plink.exe -load load-bastion-session -nc %host:%port博客
这样每次你登陆serverA的时候, Putth会先本身主动登陆到load-bastion-session,而后以它做为代理,而后在登陆到serverA。io
好了。就到这里了。ast
原文:http://blog.csdn.net/hongchangfirst/article/details/36627809
做者:hongchangfirst
hongchangfirst的主页:http://blog.csdn.net/hongchangfirst