$ ssh-keygen -t rsa -C "user1@qq.com" $ ssh-keygen -t rsa -C "user2@qq.com" # 设置user2的密钥对名字为 id_rsa_user2 Enter file in which to save the key (/c/Users/lenovo/.ssh/id_rsa): c/Users/lenovo/.ssh/id_rsa_user2
# ssh -T git@Host(config中设置的Host) $ ssh -T git$user1.com # 输出:Hi user1! You've successfully authenticated, but GitHub does not provide shell access. $ ssh -T git$user2.com # 输出:Hi user2! You've successfully authenticated, but GitHub does not provide shell access.