有时你想登录到serverA,但serverA白名单,你刚刚从山寨机B登录了,所以每次你要登录到serverA。您必须先登录到山寨机B。然后登录到serverA。
我们能够用Putty的local proxy来设置每次登录到serverA的时候,自己主动先登录到堡垒机B,然后以堡垒机B作为代理在登录到serverA,所以从用户的角度看。这样每次就能够直接登录到serverA了。
好以下来看一下怎么设置。
首先设置自己主动登录到堡垒机的设置,这个寻常的设置没什么差别。
如果这个设置在Putty里叫做load-bastion-session.
然后我们開始建立登录到serverA的设置,须要做的额外工作是在Putty里的Connection->Proxy->Proxy type选择local。
下边的telnet command, or local proxy command写上:
plink.exe -load load-bastion-session -nc %host:%port
这样每次你登录serverA的时候, Putth会先自己主动登录到load-bastion-session,然后以它作为代理,然后在登录到serverA。
好了。就到这里了。
原文:http://blog.csdn.net/hongchangfirst/article/details/36627809
作者:hongchangfirst
hongchangfirst的主页:http://blog.csdn.net/hongchangfirst
版权声明:本文博客原创文章。博客,未经同意,不得转载。