ssh hang on wrong port - is it a bug ?

Darren Tucker dtucker at zip.com.au
Wed Jun 12 01:07:23 EST 2002


> Hari wrote:
> ssh client program seems to hang when specified a wrong port no (port
> on which some other server, like telnetd is running).

Don't do that, then.

> "netstat -an" shows the connection is established.
> I expect the ssh program to report invalid server msg and exit.
> Is this a bug or known behaviour ???

ssh probably waiting for the SSH server banner. telnetd is probably
waiting for a response to telnet option negotiation. Stalemate.

A quick experiment here shows the same behaviour for ftp & http servers.
I expected it for http (it doesn't say anything when you connect so is
indistinguishable from a slow ssh server) but I would have thought the
ftp server banner would have caused ssh to abort (like sshd does).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.



More information about the openssh-unix-dev mailing list