Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Not working #192

Closed
moazam1 opened this issue May 10, 2014 · 5 comments
Closed

Git Not working #192

moazam1 opened this issue May 10, 2014 · 5 comments

Comments

@moazam1
Copy link

moazam1 commented May 10, 2014

I have latest version cmder. When i try to ssh git it says permission denied (publickey). Here are the commands I am using:

ssh-agent - s
SSH_AUTH_SOCK=/tmp/ssh-CCWsJB1728/agent.1728; export SSH_AUTH_SOCK;
SSH_AGENT_PID=8796; export SSH_AGENT_PID;
echo Agent pid 8796;

ssh -T git@github.com
Permission denied (publickey).

I copied my .ssh folder into config folder and also put shortcut of .ssh folder but still not recognizing git ssh keys. Any help would be greatly appreciated.

Thanks

@MartiUK
Copy link
Member

MartiUK commented May 12, 2014

Have you tried putting the publickey it in your %USERPROFILE%/.ssh folder?

@moazam1
Copy link
Author

moazam1 commented May 12, 2014

yes, .ssh folder is already in my user profile.

@trevorberman
Copy link

Hi, I've just run into this problem as well.

Have %USERPROFILE%/.ssh folder in place and confirmed id_rsa working w/Git shell.

Using cmder, ssh agent won't recognize the key. Even after adding it w/specific path.

ssh-add ~/.ssh/id_rsa
Enter passphrase for /c/Users/tgberman/.ssh/id_rsa:

ssh-add -l
The agent has no identities.

Stumped so as above, any/all help is totally appreciated.

@kputtur
Copy link

kputtur commented Apr 20, 2020

Folks is this fixed ? I am facing exact same error as described above, any resolution?

@daxgames
Copy link
Member

daxgames commented Apr 20, 2020

@trevorberman @kputtur It works as expected for me.

In my %cmder_root%\config\user_profile.cmd:

:: uncomment this to have the ssh agent load when cmder starts
call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd" /k exit
ssh-add.exe ~/.ssh/ci-cd-testing.pem

Results in:

Removing old ssh-agent sockets
Starting ssh-agent:  done
Identity added: /c/Users/xxxx/.ssh/id_rsa (/c/Users/xxxx/.ssh/id_rsa)

Identity added: /c/Users/xxxx/.ssh/ci-cd-testing.pem (/c/Users/xxxx/.ssh/ci-cd-testing.pem)

Running ssh-add -l displays both identities as expected and ssh -T git@github.com works as expected also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants