Home >System Tutorial >LINUX >Quickly master SSH login in 3 steps!

Quickly master SSH login in 3 steps!

PHPz
PHPzforward
2024-01-01 22:05:481349browse
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.

Quickly master SSH login in 3 steps!

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:

Quickly master SSH login in 3 steps!

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:

Quickly master SSH login in 3 steps!

Then click "Save private key" to generate and download the corresponding ppk format file:

Quickly master SSH login in 3 steps!

Step 2:

Open Putty, enter or load the host information to log in, and then select "Connection > SSH > Auth" on the left

Quickly master SSH login in 3 steps!

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:

Quickly master SSH login in 3 steps!

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:

Quickly master SSH login in 3 steps!

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!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete