1Permission denied (publickey)
Permission denied (publickey) is displayed for remote mac login. If the public key is correct, check the ~/.ssh
directory and key files permissions.
1
2# change this to YOUR username on the server.
3YOURUSER=ma
4
5# paste these lines verbatim:~
6sudo chown $YOURUSER:$YOURUSER ~/$YOURUSER/{.,.ssh/,.ssh/authorized_keys}
7sudo chmod u+rwX,go-rwX,-t ~/$YOURUSER/{.ssh/,.ssh/authorized_keys}
8sudo chmod go-w ~/$YOURUSER/