按如下命令来生成 ssh key
ssh-keygen -t rsa -C "huhui8218219@163.com"
按照提示完成三次回车,即可生成 ssh key,保存在~/.ssh/id_rsa.pub,查看:
[root@hu2i_ferhat ~]# cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4QOap4Nh7OGD/jY+1Ga3m... huhui8218219@163.com
ssh-keygen -t rsa -C "huhui8218219@163.com"
[root@hu2i_ferhat ~]# cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4QOap4Nh7OGD/jY+1Ga3m... huhui8218219@163.com
本文标题:生成SSH公钥
本文链接:https://www.haomeiwen.com/subject/egvkdctx.html
网友评论