ssh生成单个公钥

 

ssh生成单个公钥命令:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

查看公钥:

cat ~/.ssh/id_rsa.pub

同时生成两个公钥:

[email protected]邮箱:ssh-keygen -t rsa -C "[email protected]" -f ~/.ssh/id_rsa_user1 
[email protected]邮箱:ssh-keygen -t rsa -C "[email protected]" -f ~/.ssh/id_rsa_user2

查看本机ssh公钥,生成公钥:

cd ~/.ssh

 

参考资料:

https://www.cnblogs.com/xiuxingzhe/p/9303278.html

 

你可能感兴趣的:(ssh生成单个公钥)