开发者社区> 问答> 正文

linux中生成 SSH 密钥对的方法是什么?

linux中生成 SSH 密钥对的方法是什么?

展开
收起
游客qzzytmszf3zhq 2021-12-05 18:09:30 410 0
1 条回答
写回答
取消 提交回答
  • [fsmythe@example.com ~]$ /usr/bin/ssh-keygen -t dsa
    Generating public/private dsa key pair.
    Enter file in which to save the key (/home/fsmythe/.ssh/id_dsa):
    Enter passphrase (empty for no passphrase): ******    (Enter 'mypassword')
    Enter same passphrase again: ******	(Enter 'mypassword')
    Your identification has been saved in /home/fsmythe/.ssh/id_dsa.
    Your public key has been saved in /home/fsmythe/.ssh/id_dsa.pub.
    The key fingerprint is:
    33:af:35:cd:58:9c:11:91:0f:4a:0c:3a:d8:1f:0e:e6 fsmythe@example.com
    [fsmythe@example.com ~]$
    
    2021-12-05 18:09:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

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