ssh生成单个公钥
ssh生成单个公钥命令:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
查看公钥:
cat ~/.ssh/id_rsa.pub
同时生成两个公钥:
user1@163.com邮箱:ssh-keygen -t rsa -C "user1@163.com" -f ~/.ssh/id_rsa_user1
user2@163.com邮箱:ssh-keygen -t rsa -C "user2@163.com" -f ~/.ssh/id_rsa_user2
查看本机ssh公钥,生成公钥:
cd ~/.ssh
参考资料:
https://www.cnblogs.com/xiuxingzhe/p/9303278.html