my ssh in git-bash stop working

684 views
Skip to first unread message

ozkan pakdil

unread,
Jan 3, 2020, 10:42:52 AM1/3/20
to git-for-windows
Hi

It has been couple of months my ssh in git-bash stop working in win10.
looks like above and exits. it was working if I delete my .ssh folder from users folder. but now even I delete the folder it does not change. and in cmd git command works. probably I mix some configuration in normal windows ssh client and git-bash ssh client.

how can I fix it ?

Thanks

Johannes Schindelin

unread,
Jan 3, 2020, 3:00:59 PM1/3/20
to ozkan pakdil, git-for-windows
Hi,

On Fri, 3 Jan 2020, ozkan pakdil wrote:

> It has been couple of months my ssh in git-bash stop working in win10.
> looks like above and exits. it was working if I delete my .ssh folder from
> users folder. but now even I delete the folder it does not change. and in
> cmd git command works. probably I mix some configuration in normal windows
> ssh client and git-bash ssh client.
>
> how can I fix it ?

When I try to run that command, it does not stop there but continues with
the line

debug2: ssh_connect_direct

and eventually asks me to accept the host's key.

When the command stops, does it do so with an exit code? I.e. what does
`echo $?` show directly after the failed `ssh` command?

Ciao,
Johannes

Johannes Schindelin

unread,
Jan 4, 2020, 4:39:21 PM1/4/20
to Özkan Pakdil, git-for...@googlegroups.com
Hi Özkan,

please do not drop the Cc: list. If you reply to me personally, but not to
the list, I am likely to get the impression that I am being mistaken for a
private, completely free-of-cost help desk, which I am actually not.

On Sat, 4 Jan 2020, Özkan Pakdil wrote:

> looks like it success.

This screen shot (why send screenshots of text?) does not even show the
line `debug2: ssh_connect_direct`. There is something really broken in
your setup, something that I cannot reproduce.

Ciao,
Johannes

>
> [image: image.png]

Özkan Pakdil

unread,
Jan 5, 2020, 4:33:58 AM1/5/20
to Johannes Schindelin, git-for...@googlegroups.com
Hello Johannes

I am sending the screen shot to show what really happened in my box. and as you say there is no even ssh_connect_direct. my ssh somehow not even try to connect.

Thanks for trying :) and sorry about the CC stuff. I am not very used to google groups.

Johannes Schindelin

unread,
Jan 6, 2020, 2:19:41 PM1/6/20
to Özkan Pakdil, git-for...@googlegroups.com
Hi,

the only remaining idea I have is to use Process Monitor
(https://docs.microsoft.com/en-us/sysinternals/downloads/procmon) to try
to find out what is actually going wrong.

Ciao,
Johannes

Özkan Pakdil

unread,
Jan 8, 2020, 12:01:46 PM1/8/20
to Johannes Schindelin, git-for...@googlegroups.com
Hi

I think we are on to some sneaky bug or deep configuration problem. because when I first try to get log from procman ssh connected. I tried couple of times. and it worked 2 out of 8. I read the log and tried to find out the reason but could not. you can see it in the attachment.

I believe some resource not returning in time without procman thats why ssh is not connecting, and when procman starts listening that resource responding in time and ssh is working properly. 

Thanks
sshLogfile.7z
Reply all
Reply to author
Forward
0 new messages