Putty sets automatic two consecutive logins

Source: Internet
Author: User

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.