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

SSH 使用密钥对认证

时间:2019-10-01 16:39:07      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:image   home   cat   private   been   print   认证   random   int   

#ssh-keygen#ssh-copy-id -i ~/.ssh/id_rsa.pub sysadm01@192.168.1.2

 1 [risen@oc5800450712 ~]$ ssh-keygen
 2 Generating public/private rsa key pair.
 3 Enter file in which to save the key (/home/risen/.ssh/id_rsa): 
 4 Enter passphrase (empty for no passphrase): 
 5 Enter same passphrase again: 
 6 Your identification has been saved in /home/risen/.ssh/id_rsa.
 7 Your public key has been saved in /home/risen/.ssh/id_rsa.pub.
 8 The key fingerprint is:10 The keys randomart image is:
11 +---[RSA 2048]----+
12 |       ..+.+.oo=.|
13 |        =.=oo++.o|
14 |       ..+.o=Eo++|
15 |       . .oo +o *|
16 |      . S o o..=.|
17 |       o o = *o.o|
18 |      .   = = o. |
19 |         . o  .  |
20 |            ..   |
21 +----[SHA256]-----+
22 [risen@oc5800450712 ~]$ 
1 [risen@oc5800450712 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub sysadm01@192.168.1.2
1 ssh sysadm01@192.168.1.2

 

SSH 使用密钥对认证

标签:image   home   cat   private   been   print   认证   random   int   

原文地址:https://www.cnblogs.com/crossworld/p/11615330.html

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