码迷,mamicode.com
首页 > 系统相关 > 详细

linux 密钥登录

时间:2017-04-05 23:16:43      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:local   oca   root   roo   lin   href   localhost   gen   copy   

ssh-keygen -t rsa

ssh-copy-id -i .ssh/id_rsa.pub root@10.0.50.34

[root@localhost ~]# ll .ssh/authorized_keys

-rw——- 1 root root 391 Aug 4 18:31 .ssh/authorized_keys

linux 密钥登录

标签:local   oca   root   roo   lin   href   localhost   gen   copy   

原文地址:http://www.cnblogs.com/mssq/p/6671080.html

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