[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ssh just "hangs"

Hash: SHA1

At 10:30 -0600 on 9/2/99, Emre wrote:
> bash-2.03# ssh -l user -v host.com
> SSH Version 1.2.27 [i386-unknown-openbsd2.5], protocol version 1.5.
> Compiled with RSAREF.
> skippy: Reading configuration data /etc/ssh_config
> skippy: ssh_connect: getuid 0 geteuid 0 anon 0
> skippy: Connecting to host.com [xxx.xxx.xxx.xxx] port 22.
> skippy: Allocated local port 884.
> That's all I get.  It hangs there for a while and then after a couple
> of minutes it says this:
> Does anyone know why this is happening?  It always woked with my crappy
> Linux boxes, but not here.  Also it hangs when I try to update CVS and
> such.  Does anyone know how to fix this?  Any help would be greatly
> appreciated.
> Cheers & Greetings

You might expose more useful details if you fire up tcpdump and take a look
at the IP traffic.  In addition, what does netstat show you about the state
of your TCP connection while waiting for the timeout?  Also, what do the logs
and netstat on the remote host say about your incoming connection?

I ask those particular questions because I've seen similar behavior every
time I do a fresh install on certain machines (then I kick myself, and fix
the problem :-).  In my case, the remote host is not on the same LAN as my
newly installed OpenBSD boxes.  In fact, the new installs are downstream of a
terminal/PPP server that doesn't pass packets with RFC 1323 header
extensions, while the remote host happily negotiates use of RFC 1323 exts.
TCP connections thus die after the first 2/3 of the handshake.

If your problem is caused by the same difficulty, you might try 'sysctl -w
net.inet.tcp.rfc1323=0'.  See /etc/sysctl.conf for a useful place to make
this the default.


Version: PGP Personal Privacy 6.5.1
Comment: www.europarl.eu.int/dg4/stoa/en/publi/166499/execsum.htm