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 . Thanks On Tue, Mar 31, 2015 at 2:53 PM, Siva Abbannagari < [email protected]> wrote: > 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 [email protected]:/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://[email protected]:/opt/ > myproject.git/ > > I get temporary problem in name resolution. > > Can someboyd help please. > > Thanks, > > -- > 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 > https://groups.google.com/d/topic/git-users/MeEza11gd3A/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > 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 to [email protected]. For more options, visit https://groups.google.com/d/optout.
