Home >System Tutorial >LINUX >Quickly master SSH login in 3 steps!
Introduction | In some operation and maintenance scenarios, in order to avoid security risks such as brute force cracking of passwords, ssh keys are used to log in. For example, AWS EC2 and the open source spring machine Jumpserver all use ssh keys to log in. |
Taking Jumpserver as an example, when the administrator creates a new user, the user's ssh key file (pem format) and ssh key password will be sent to the new user by email at the same time.
The next login steps are as follows:
step one:Since the ssh key file imported by Putty, xShell and other tools is in ppk format (ie: Putty Private Key), you need to download the PuttyGen tool first and convert the pem file to ppk format:
Open PuttyGen, click "Conversions > Import key" to select the obtained pem file. If the key file has a password set, the following prompt box will pop up. Enter the key file password:
Then click "Save private key" to generate and download the corresponding ppk format file:
Step 2:Open Putty, enter or load the host information to log in, and then select "Connection > SSH > Auth" on the left
Then click "Browse" to select the ssh key file in ppk format, and then click the Open button to establish a connection with the ssh key:
Step 3:If the ssh key file has a password, the Putty interface will prompt Passphrase for key “imported-openssh-key”: Enter the ssh key file password:
The above is the detailed content of Quickly master SSH login in 3 steps!. For more information, please follow other related articles on the PHP Chinese website!