生成ssh key

来源:互联网 发布:屏蔽淘宝网 百度 编辑:程序博客网 时间:2024/05/22 07:09

命令如下

[root@aliyun ~]# ssh-keygen -t rsa -b 4096 -C "xxx@xxxx.com"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:2e:8b:be:64:e9:4c:ca:e1:50:ae:05:72:d7:9b:1f:8f gxpisme@gmail.comThe key's randomart image is:+--[ RSA 4096]----+|                 ||                 ||                 ||     .           ||o o . . S        ||.= . . +         ||. + = + o        || * O . + +       ||. +.*.. E .      |+-----------------+

参考 https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/

0 0