search

Home  >  Q&A  >  body text

github - How to set up multiple different deployment public keys in GIT?

There are two deployment public keys in

/home/www/.ssh/id_rsa

---begin---
github
--end--
---begin--
git.oschina.net
---end--

There is no problem using clone from github, but it will not work if you change to other public keys (platforms). The error message is as follows:

RSA key fingerprint is 98:ab:2b:30:60:00:82:86:bb:85:db:87:22:c4:4f:b1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '101.70.156.64' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
某草草某草草2824 days ago1054

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-02 09:44:24

    Solved
    Just add new rules in ~/.ssh/config.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:44:24

    http://blog.sina.com.cn/s/blo...
    Just modify the config

    reply
    0
  • Cancelreply