首页 > 其他 > 详细

SSH 使用密钥对认证

时间:2019-10-01 15:39:52      阅读:85      评论:0      收藏:0      [点我收藏+]

#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 使用密钥对认证

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

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