开发者社区> 问答> 正文

linux中如何在客户端生成密钥对?

linux中如何在客户端生成密钥对?

展开
收起
游客yzrzs5mf6j7yy 2021-12-06 10:27:35 430 0
1 条回答
写回答
取消 提交回答
  • [root@Centos6_1 .ssh]# ssh-keygen #默认使用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: e5:14:2b:ff:7c:ed:52:a1:0f:4a:3c:b0:a8:4b:c0:b8 root@Centos6_1 The key's randomart p_w_picpath is: +--[ RSA 2048]----+ | . | | o | | . + | | o B . | | . o S * . .| | . . . . * o ..| | E .. . = +..| | .. . ..o | | .. ..| +-----------------+

    2021-12-06 10:27:47
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载