This works no differently to what we explained in the previous recipe. Let's verify the .ssh hidden directory and make sure that the public key file has got rw permission. By default, the permission is set while generating the public key. Type in ls -l ~/.ssh and hit the Enter key to verify the permission. We can see that a file called id_rsa (private key and a file called id_rsa.pub (public key) are listed. Let's view the public key's content with the cat command. Type in cat ~/.ssh /id_rsa.pub and hit the Enter key.
Now, create a .ssh folder at the user's home directory of the Windows machine and copy the public key to the .ssh folder using the WinSCP tool. After doing this, run the cat command to append it to ...