The problem got solved is It was using the default key.(which was
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 .
On Tue, Mar 31, 2015 at 2:53 PM, Siva Abbannagari <
> Hi ,
> I am new to git and trying to clone using ssh keys.
> i am able to ssh to the server using a key.
> I am using the same key and trying to clone the repository:
> KEY=key.pem git clone d...@repo.tesw.com:/opt/myproject.git/
> Cloning into 'myproject'...
> Permission denied (publickey,gssapi-with-mic).
> fatal: Could not read from remote repository.
> Please make sure you have the correct access rights
> and the repository exists.
> I have the correct permissions to the user.
> If I use KEY=key.pem git clone ssh://d...@repo.tesw.com:/opt/
> I get temporary problem in name resolution.
> Can someboyd help please.
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> To unsubscribe from this group and all its topics, send an email to
> For more options, visit https://groups.google.com/d/optout.
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
For more options, visit https://groups.google.com/d/optout.