1.切换到.ssh文件目录
cd .ssh
2.同时生成两个秘钥
user1@163.com邮箱:ssh-keygen -t rsa -C "user1@163.com" -f id_rsa_user1 user2@163.com邮箱:ssh-keygen -t rsa -C "user2@163.com" -f id_rsa_user2
1.切换到.ssh文件目录
cd .ssh
2.同时生成两个秘钥
user1@163.com邮箱:ssh-keygen -t rsa -C "user1@163.com" -f id_rsa_user1 user2@163.com邮箱:ssh-keygen -t rsa -C "user2@163.com" -f id_rsa_user2