use Xshell to simplify the logon operation of the springboard to the development machine
by Ma Dongliang (Frost Loki)
A man's War (http://blog.csdn.net/MDL13412) background
My work in Qunar is devops development, so need to connect to the remote development machine through the terminal to work, due to security and other factors, login to the development machine needs to log on to the springboard machine, and then on the springboard machine is actually connected to the development machine, as shown in the figure below:
Normal sign-in process
Use the SSH command to log in to the springboard, enter your own settings password +token generated dynamic password, log on board machine after successful, in the terminal assigned to the board to use the SSH command to login to the development machine, the springboard and the development machine with password SSH authentication, so you need to enter the password of the SSH private key.
The logon process is shown in the following figure:
Connecting a springboard Machine
Enter user name
Enter user password +token dynamic password
Springboard Machine Login Successful
Log in to the development machine from a springboard machine
Login successful after entering SSH private key password
Streamline Processes
Log on to the springboard, enter the user name this process can be simplified by using Xshell to automatically complete the user name input, as shown in the following figure:
Log on the board successfully, you can set up the automatic login development machine
The following figure is a login development machine command that is automatically entered after the Xshell login springboard is successful:
The key to the next issue is how the springboard automatically enters the SSH private key password to enable the automatic login development machine. In order to achieve automatic login, we need to use the Xshell xagent tool;
First find "Tools", "xagent Start (A)" In the menu bar, and add the SSH private key used by the login developer as follows:
The next step is to set up a session for the Xshell logon board, as follows:
After making the above settings, log in, the effect is as follows:
Summary
After the setting of the Xshell, we finally realized, just enter the springboard machine login dynamic password, can complete the effect of the entire login process, greatly simplifying the daily login process, saving time.