Create related file and directory under user home directory
umask 077 && test -d ~/.ssh || mkdir ~/.ssh
umask 077 && touch ~/.ssh/authorized_keys
Copy and paste the public key to the file
vim ~/.ssh/authorized_keys
Set the right permission
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys