How to add multiple public keys to git? I host the project on github and osc
世界只因有你
世界只因有你 2017-05-02 09:40:46
0
4
726

ssh-keygen -t rsa -C "your_email@example.com"

This method directly overwrites the public key under ~/.ssh/id_rsa.pub.
I want to add multiple public keys, how do I do it/

世界只因有你
世界只因有你

reply all(4)
巴扎黑

ssh-keygen -f ~/.ssh/osckeyfile

Then add the ~/.ssh/config file, configure the git domain name, and your ssh private key path above

Host git.oschina.net # 我没用过,你换osc的域名
    IdentityFile ~/.ssh/osckeyfile

PS: Multiple websites can use the same key and do not have to be separated

仅有的幸福

The public key of a machine should be unique

刘奇

Please refer to:
http://stackoverflow.com/ques...

仅有的幸福
  1. Can share a public key

  2. Different key names will not be overwritten

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template