On 31 March 2015 at 22:27, Siva Abbannagari <siva.abbannag...@gmail.com> wrote:
> The problem got solved  is It was using the default key.(which was
> differnet).
> so I replaced the default key with mine it the cloned machine and it worked.
> Is there a way in git to tell which specific key I should use to connect .

I don't know if there's a way to tell git directly what ssh key to
use, but you can do it indirectly via ssh configuration.  I have this
sort of thing set up for several repos:

~~~ in ~/.ssh/config
Host gitlab.com
    IdentityFile ~/.ssh/id_dsa_gitlab

Then I clone using `git clone g...@gitlab.com:my/repo.git`.  Have a
look at `ssh_config(5)` for more info on what you can put in your ssh
config file.


Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to