macbook上ssh localhost免密登录

版权声明:*************本文为博主原创文章,转载请注明出处************* https://blog.csdn.net/oDaiLiDong/article/details/83904019

第一步:ssh-keygen -t rsa 
       然后提示输入直接按回车就好
第二步:cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
第三步:chmod og-wx ~/.ssh/authorized_keys
第四步:chmod 750 $HOME 
搞定!

猜你喜欢

转载自blog.csdn.net/oDaiLiDong/article/details/83904019