You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
Hey guys,
I am using OpenSSH provided by Windows 10. I have the ssh-agent running with all my Git SSH keys loaded, however when I do a git clone, like
git clone g...@github.com:git-for-windows/git.git
I get asked for my key passwod. I use cmder with git-for-windows. Is git for windows not connecting to the ssh-agent or is this an unsupported setup?
Thanks in advance
Ilia Basin
unread,
Jan 15, 2019, 9:28:57 AM1/15/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
Please do in git bash:
echo $SSH_AUTH_SOCK
вторник, 15 января 2019 г., 17:09:54 UTC+3 пользователь Miha написал:
Hey guys,
Miha
unread,
Jan 15, 2019, 12:28:04 PM1/15/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
I get the following:
C:\Users\miha
λ echo $SSH_AUTH_SOCK
$SSH_AUTH_SOCK
C:\Users\miha
λ ssh-add -l
4096 SHA256:b44+7uqDG
4096 SHA256:JyZLZepAy
C:\Users\miha
λ
Does this mean the env variable is not set?
Ilia Basin
unread,
Jan 15, 2019, 12:52:55 PM1/15/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
Miha, the "git bash" shortcut looks like in the attached image:
What you were using is the Windows Command Prompt. It's a different thing and a different syntax to echo an environment variable.
вторник, 15 января 2019 г., 20:28:04 UTC+3 пользователь Miha написал:
Miha
unread,
Jan 15, 2019, 2:00:48 PM1/15/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
You are correct.
I get this on Git Bash.
So ssh-add cannot be found with git bash but works fine with cmd, why could that be?
On Tuesday, January 15, 2019 at 3:09:54 PM UTC+1, Miha wrote:
Ilia Basin
unread,
Jan 15, 2019, 2:43:08 PM1/15/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
Beside ssh.exe installed with Git For Windows there should be another ssh.exe provided by OS. If you manage to force git to use this ssh client, it might work. The reason is Windows SSH agent uses a fixed named pipe address and the clients provided by windows work without $SSH_AUTH_SOCK set.
- Test that C:\path\to\another\ssh.exe can use the agent
- set the environment variable GIT_SSH=C:/path/to/another/ssh.exe
вторник, 15 января 2019 г., 22:00:48 UTC+3 пользователь Miha написал:
Miha
unread,
Jan 16, 2019, 3:01:25 PM1/16/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-for-windows
Yup setting the environment variable to :
GIT_SSH=C:/Windows/System32/OpenSSH/ssh.exe
actually works fine. Thanks a lot for the help!
Would be nice if this was a bit more plug & play, not sure how exactly how though. Maybe git-for-windows could detect a native OpenSSH implementation installed.
Thanks again!
Miha
Johannes Schindelin
unread,
Jan 16, 2019, 3:56:04 PM1/16/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message