Document directory
- Background
- Normal Logon Process
- Simplified process
- Summary
Use xshell to simplify login from the jump server to the Development Server
By Ma Dongliang (cream Loki)
One man's war (http://blog.csdn.net/MDL13412)
Background
My work in Qunar is O & M development. Therefore, I need to connect to the remote development machine through a terminal. Due to security and other factors, I need to log on to the development machine first, connect to the development machine on the stepping stone, as shown in:
Normal Logon Process
- Log on to the stepping stone using SSH commands, and enter your own password + Dynamic Password generated by token;
- After logging on to the stepping stone, log on to the development machine by Using SSH commands in the terminal allocated by the stepping stone machine. The password-based SSH verification is used between the stepping stone machine and the development machine, therefore, you must enter the password of the SSH private key.
Shows the logon process:
Connect to the stepping stone
Enter User Name
Enter user password + token Dynamic Password
Stepping Stone login successful
Log on to the development server from the stepping stone
Login successful after entering the SSH private key password
Simplified process
Log on to the stepping stone and enter the user name. This process is simplified. You can use xshell to automatically enter the user name, as shown in:
After logging on to the jump server, you can set automatic logon to the development server.
After xshell is successfully logged on to the stepping stone, the following logon commands are automatically entered:
The key to the next issue is how to automatically enter the SSH private key password on the stepping stone to automatically log on to the development machine. To achieve automatic logon, we need to use the xagent tool with xshell;
First, find "tool"-> "xagent start (a)" in the menu bar, and add the SSH private key to be used to log on to the development machine, as shown below:
Next, you need to set the session for xshell login to the stepping stone, as shown below:
After the preceding settings are complete, log on to the system. The effect is as follows:
Summary
After setting xshell, we finally achieved the effect of the entire login process by entering the dynamic password for login from the stepping stone, which greatly simplifies the daily login process and saves time.