# cd ~Now make a directory to store the public key:
# mkdir ./.sshAnd set correct permissions (very important for SSH access):
# chmod 700 ./.sshCreate the file to store the public key:
# nano ./.ssh/authorized_keysPaste the public key data from step #6 into the file and save the file. Set the file permissions (very important for SSH access):
# chmod 600 ./.ssh/authorized_keysSet file owner/group:
# chown -R username:groupname ./.ssh
Authenticating with public key "rsa-key-xxxxxxxx"Now you can enter your passphrase to enter the SSH session.
Passphrase for key "rsa-key-xxxxxxxx":