Linux生成SSH公钥

By kcersing , 9 六月, 2021


一、运行

ssh-keygen -t rsa -C "xxxxx@xxxxx.com"

xxxxx@xxxxx.com 为你自己的邮箱

或者

 ssh-keygen -t rsa

按照提示完成三次回车,即可生成 ssh key。 

二、

cat ~/.ssh/id_rsa.pub

(/root/.ssh/)文件内容,获取到你的 public key


标签