有時你想登陸到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