Chinaunix首页 | 论坛 | 博客
  • 博客访问: 108261
  • 博文数量: 74
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 757
  • 用 户 组: 普通用户
  • 注册时间: 2013-10-20 22:42
个人简介

相信生命中的无限潜能

文章分类

全部博文(74)

文章存档

2016年(1)

2015年(30)

2014年(30)

2013年(13)

我的朋友

分类: LINUX

2015-05-20 13:10:01

[root@localhost ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
bc:fb:11:ed:ea:0e:aa:d6:b4:5c:c7:69:8a:1d:40:18 root@localhost
The key's randomart image is:
+--[ RSA 2048]----+
|    Eo           |
|    . .          |
|     .           |
|      ..   .     |
|       .S....    |
|      . o.=o     |
|     + =o=. .    |
|    . =.oo o     |
|   .... .+=      |
+-----------------+

步骤2: 用 ssh-copy-id 把公钥复制到远程主机上
ligh@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub  root@192.168.0.3

阅读(1217) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~