Once logged in, type in the following commands
mkdir -p .ssh chmod 700 .ssh vim .ssh/authorized_keys
Next edit the permissions with the command:
chmod 600 .ssh/authorized_keys