Configure SSH server to login with Keys Authentication. It is needed for it to make private key for client and public key for server.
|||Download 'puttygen.exe' from Putty's site.|
|||Start 'puttygen.exe' and click 'Generate' button.|
|||Move mouse untill progress bar will be full.|
|||Set passphrase in 'Key passphrase' and 'Confirm passphrase'. Next, Click 'Save public key' and 'Save private key' and Save keys with a file name you want.|
|||Open the 'public_key' you saved.|
|Remove the first line and last line and replace the second line to 'ssh-rsa' and then remove all indention like follows. 'ssh-rsa
|||Login with a user and put 'public_key'.|
chmod 700 .ssh
# Copy and Paste 'public_key'.
chmod 600 authorized_keys
# line 69: Change
systemctl restart sshd.service
|||Start Putty and select 'private_key' like follows.|
|||If it's all OK, connect to the server with keys authentication.|
|||Passphrase you set is required to input fpr login. After inputiing correct one, it's possible to login like below.|