Sometimes you want to log on to server a, but server A has a white list. You can only log on from bastion host B. Therefore, every time you want to log on to server a, you must first log on to bastion host B, then, log on to server.
We can use the local proxy of putty to set that each time we log on to server a, we will automatically log on to bastion host B first, and then use bastion host B as the proxy to log on to server, from the user's perspective, you can log on to server a directly each time.
Let's take a look at how to set it.
First, set the settings for automatically logging on to the bastion host. This setting is normal. Assume that this setting is called load-Bastion-session in putty.
Then we start to set up the login to server a. The additional work we need to do is to select local in the connection-> proxy type in putty.
Telnet command below, or local PROXY command:
Plink.exe-load Load-Bastion-session-NC % HOST: % Port
In this way, every time you log on to server a, putth will automatically log on to load-Bastion-session, use it as the proxy, and then log on to server. Okay, that's it.
Original article: http://blog.csdn.net/hongchangfirst/article/details/36627809
Author: hongchangfirst
Hongchangfirst home: http://blog.csdn.net/hongchangfirst