Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

MiracleLinux8.4 ; SSH public key cryptography setting

Public key

1.Create a key pair with RSA

Become an ordinary user and create a key pair with RSA

2.Private Key Login Settings

Restart SSH

 Copy the private key to the client PC (using WinSCP) Configure WinSCP settings
①Start WinSCP, set the following in "New Site", and click "Save".

Host name : Server IP address
Port number :  SSH port number
User name : User name
Password :  User password

Give the connection a name of your choice.  ↓

You will return to the following screen and click "Login. ↓

When the following screen appears, click "Update.   ↓

In the following screen, enter the user's password in "Password".

Copy the id_rsa in the /home/user/.ssh directory to the desired location on the windows side (select id_rsa, drag it to the left side and copy it).

3.Change to login only with private key

Restart SSH

4.Creating a private key using PuTTYgen

Launch Winscp and start puttygen.exe from Tools

Click Load to open the Open File dialog box, change the file type to [ All Files (*. Change the file type to [ All Files (*. *) ] and load the private key id_rsa transferred from the Linux server.

Enter the passphrase that you entered when you created your private key.

When the following message is displayed, click the [ OK ] button.

Click the [ Save private key ] button to save the private key.

In this case, save it as id_rsa.ppk (in Windows).

Connect to an SSH server using a private key
Start Winscp, specify the target server, and open "Edit", "Advanceds", and "Authentication" in that order.
Specify id_rsa.ppk saved in windows in the "Private Key" field.

Enter the passphrase that you entered when you created the private key on the server side.

Copied title and URL