标签:
ssh-keygen -t rsa //一路回车就好
cat id_dsa.pub >> ~/.ssh/authorized_keys
修改ssh配置文件(这一步很重要,不然可能不生效)
sudo vi /etc/ssh/sshd_config
AuthorizedKeysFile %h/.ssh/authorized_keys //取消前面注释
sudo service ssh restart
标签:
原文地址:http://www.cnblogs.com/osly/p/4775209.html