6
3
I have a Cygwin machine that runs sshd. When I try to login the machine with SSH, it takes a while to get a response.
With the command ssh -v user@cygwin
, I see that there are two commands that takes minutes.
debug1: Reading configuration data /etc/ssh_config debug1: Connecting to pspc [10.0.40.177] port 22. debug1: Connection established. debug1: identity file /Users/smcho/.ssh/identity type -1 debug1: identity file /Users/smcho/.ssh/id_rsa type -1 debug1: identity file /Users/smcho/.ssh/id_dsa type -1 <---
And
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3 debug1: match: OpenSSH_5.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.2 debug1: SSH2_MSG_KEXINIT sent <---
After some Googling, I think it is caused by windows port 113 being firewalled. (http://www.cygwin.com/ml/cygwin/2009-03/msg00380.html)
How can I solve this problem? How can I return from identify
and SSH2_...IT sent
quickly?
What if you try to connect to that cygwin-machine from that same cygwin-machine? Like
ssh -v user@localhost
? – Arjan – 2010-02-18T07:07:49.263By the way: you cannot tell exactly if that "identify" line is causing the delays. That might very well have been completed, after which the server is doing something else. I guess peeking into the server logs might give some insight. Could you try with another client machine, just to be sure it's not the client that's causing the delays? – Arjan – 2010-02-18T07:29:26.827
I ran in cygwin this command 'ssh -v user@localhost', and the result is exactly the same. – prosseek – 2010-02-18T17:44:30.767
So, what about the server logs on that cygwin machine? – Arjan – 2010-02-19T07:58:12.240
@Arjan : there seems to be 'no' change in /var/log/ directory including sshd.log. – prosseek – 2010-02-25T16:04:37.173
I test to open the 113 port, but I got the same result. – prosseek – 2010-02-25T16:06:57.493