1Permission denied (publickey)
远程登录 mac SSH 提示 Permission denied (publickey),如果密钥正确,检查 ~/.ssh
目录及文件权限。
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/