Mailing List Archive

ssh-1.2.2 freeze under Linux
After compiling and installing ssh-1.2.2 at home whenever I try to ssh
to a host ssh freezes and never actually tries to establish a
connection. Actually it depends on whether I'm dialed in or not
(it has to do with dns lookups, I'm not sure exactly what it is
doing). The problem seems to be caused by getaddrinfo in ssh.c,
line 511. If I strace the process it keeps trying to connect to my
dns server to resolve the name. If I use the full host name (or
if I'm dialed in) it claims
Secure connection to full.host.name refused.
However, no connection attempt is logged on the remote machine.

I am using RH6.0 with kernel 2.2.14 and glibc-2.1.1-6. getaddrinfo
is detected by configure (it is in glibc) so that version is used.
If, by hand, I insert into config.h
#define BROKEN_GETADDRINFO 1
then it seems to connect fine. I don't seem to have any information
on what getaddrinfo is suppose to do (neither man page nor in glibc
info) so I don't know why it isn't working (such as it might not like
something in hints).

I noticed a similar problem with 1.2pre27 but didn't have time to
look into it until now.

Craig

--
Craig J Copi | cjc5@po.cwru.edu
Case Western Reserve University | http://erebus.phys.cwru.edu/~copi/
Department of Physics | (216) 368-8831
Re: ssh-1.2.2 freeze under Linux [ In reply to ]
On Sat, 29 Jan 2000, Craig J Copi wrote:

> After compiling and installing ssh-1.2.2 at home whenever I try to ssh
> to a host ssh freezes and never actually tries to establish a
> connection. Actually it depends on whether I'm dialed in or not
> (it has to do with dns lookups, I'm not sure exactly what it is
> doing). The problem seems to be caused by getaddrinfo in ssh.c,
> line 511. If I strace the process it keeps trying to connect to my
> dns server to resolve the name. If I use the full host name (or
> if I'm dialed in) it claims
> Secure connection to full.host.name refused.
> However, no connection attempt is logged on the remote machine.

Try the --with-ipv4-default option.

Damien

--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.mindrot.org/
| Email: djm@mindrot.org (home) -or- djm@ibs.com.au (work)
Re: ssh-1.2.2 freeze under Linux [ In reply to ]
Damien Miller writes:
>On Sat, 29 Jan 2000, Craig J Copi wrote:
>
>> After compiling and installing ssh-1.2.2 at home whenever I try to ssh
>> to a host ssh freezes and never actually tries to establish a
>> connection. Actually it depends on whether I'm dialed in or not
>> (it has to do with dns lookups, I'm not sure exactly what it is
>> doing). The problem seems to be caused by getaddrinfo in ssh.c,
>> line 511. If I strace the process it keeps trying to connect to my
>> dns server to resolve the name. If I use the full host name (or
>> if I'm dialed in) it claims
>> Secure connection to full.host.name refused.
>> However, no connection attempt is logged on the remote machine.
>
>Try the --with-ipv4-default option.
>
>Damien

I did. I used the RH spec file that comes with with the distribution.

Craig