ssh每次输入密码是不是很烦? 请使用ssh 认证!原文地址: Beginning SSH on Ubuntu
总体思路: 在本机(ssh 客户端)利用 ssh-keygen 产生一个密钥和公钥, 再把公钥放到远程服务器(ssh server)即可。
因此
1 (客户端)ssh-keygen -t dsa
2 (远程服务器) cat (客户端产生的公钥)id_dsa.pub >> authorized_keys , 此步骤可以用ssh-copy-id命令简化
ssh-copy-id -i ~/.ssh/id_dsa.pub root@192.168.0.4 (替换为你服务器的用户名密码)
原理和具体做法在上述原文中都有详细介绍。
作者:yaozer 原文链接:使用ubuntu ssh认证,不用密码即可登录ssh server
欢迎转载, 非常感谢你能注明作者和原始出处。
I didnt understand the concluding part of your article, could you please explain it more?
I’ve been browsing online more than three hours as of late, yet I never discovered any fascinating article like yours. It is beautiful price sufficient for me. Personally, if all webmasters and bloggers made just right content material as you did, the web can be much more helpful than ever before.
There will be more and more traffic to this blog .Its very interesting spread the word.
Shame on you for creating another terrific post! Awesome stuff, keep up the good work. I see a lot of potential! I wonder if you are an active user with any social networking sites like Digg or Stumble Upon?
Hello there, You have done a great job. I’ll certainly digg it and personally suggest to my friends. I am sure they’ll be benefited from this website..
Great site, figured out a few new things! Subscribed RSS for later, hope to see more updates like this one.