首页 > 其他 > 详细

CentOS创建免密码SSH(密钥)

时间:2015-12-13 00:45:37      阅读:243      评论:0      收藏:0      [点我收藏+]

1、输入以下命令:ssh-keygen -t rsa

 

2、输入命令ls:产生两个文件:id_rsa id_rsa.pub

3、复制id_rsa.pub,并命名为authorized_key

cp ~/.ssh/id_rsa.pub  ~/.ssh/authorized_keys

4、执行ssh localhost。

验证成功:

The authenticity of host ‘localhost (::1)‘ can‘t be established.
RSA key fingerprint is 07:07:8e:1c:c0:7e:7f:1f:ca:6a:e6:d3:cb:7f:b7:a1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘localhost‘ (RSA) to the list of known hosts.

CentOS创建免密码SSH(密钥)

原文:http://www.cnblogs.com/nele/p/5042141.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!