加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

利用ssh-keygen 生成公钥私钥

发布时间:2020-12-14 16:01:46 所属栏目:百科 来源:网络整理
导读:ssh-keygen -B -- show the bubblebabble digest of key -C -- provide new comment -D -- download key stored in smartcard reader -N -- provide new passphrase -P -- provide old passphrase -U -- upload key to smartcard reader -b -- specify numbe

ssh-keygen
-B -- show the bubblebabble digest of key
-C -- provide new comment
-D -- download key stored in smartcard reader
-N -- provide new passphrase
-P -- provide old passphrase
-U -- upload key to smartcard reader
-b -- specify number of bits in key
-c -- change comment in private and public key files
-e -- export key to SECSH file format
-f -- key file
-i -- import key to OpenSSH format
-l -- show fingerprint of key file
-p -- change passphrase of private key file
-q -- silence ssh-keygen
-t -- specify the type of the key to create
-y -- get public key from private key

-t 可以使用dsa ecdsa rsa rsa1

ssh-keygen -t rsa -b 2048 -C "youremail@example.com"

这个东西到时候会问你存在哪儿。生成的结果就是一对公私钥。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读