码迷,mamicode.com
首页 > 其他好文 > 详细

centos 6.5 配置ssh免登录

时间:2017-02-11 21:40:35      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:ssh   key   指定   远程   author   机器名   免密   机器   免密码   

生成密匙:

ssh-keygen -t rsa

 

会生成 id_rsa  id_rsa.pub

 

id_rsa:私匙

id_rsa.pub:公匙

 

配置当前机器免登录:

cp id_rsa.pub authorized_keys

 

ssh “当前机器名”

 

 配置远程机器免登录:

 

ssh-copy-id “远程机器ip”,就可使用ssh免密码登录指定“远程机器ip”

centos 6.5 配置ssh免登录

标签:ssh   key   指定   远程   author   机器名   免密   机器   免密码   

原文地址:http://www.cnblogs.com/lvlv/p/6390003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!