其他分享
首页 > 其他分享> > ssh localhost 免密

ssh localhost 免密

作者:互联网

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

 

要保证(权限很重要!!!):

 ~/.ssh需要是700权限
authorized_keys需要是644权限

chmod 700 ~/.ssh

chmod 644 ~/.ssh/authorized_keys

标签:644,免密,keys,authorized,ssh,权限,localhost,dsa
来源: https://www.cnblogs.com/yako/p/12925089.html