Hello there. I've noticed a strange problem happen in ALL my linux machines (some of them still running OpenSSH 2.9p1 (The one that comes with Slack8) and some of them are running 2.9.9p2 (That I have compiled myself). When I am having a certain host in my /etc/hosts, for example: 192.168.1.12 netinst When I am running ssh netinst -v -v -v the last line I could see is: ssh_connect: getuid 0 geteuid 0 anon 1 The next line is telling me that it is connecting to netinst which resolves to 192.168.1.12 The problem is that it has a 20 second delay until it really start connecting... when using an ip address instead of a hostname I'll have my connection running in no time. /etc/nsswitch.conf showed me that files are before dns, nevertheless - I REMOVED dns from the conf file - and it worked great. Of course I can't let my machine to run without a dns (Oh... almost forgot about it... the machine is internetless and dnsless most of the time, that's why it waits for a dead dns, still the /etc/nsswitch should solve that once I am telling it to search files before dns...) Anyways - Looks like a bug to me unless you could state otherwise (Hey, I am not criticizing you, just stating that it looks like a bug :)) Thanks. P.S - I am still waiting for any answer regarding my previous question about the fact that I can't exit from a shell when I have background jobs... It is really important... please help me here... Regards Gil Disatnik UNIX system/security administrator at netish inc. www.netish.com GibsonLP at EFnet _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ "Windows NT has detected mouse movement, you MUST restart your computer before the new settings will take effect, [ OK ]" -------------------------------------------------------------------- Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system, written for a 4 bit processor by a 2 bit company which can not stand 1 bit of competition. -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
On Wed, 10 Oct 2001, Gil Disatnik wrote:> The problem is that it has a 20 second delay until it really start > connecting... when using an ip address instead of a hostname I'll have my > connection running in no time.The server end is stalling on a reverse lookup. You can switch this behaviour off (read the manpage).> P.S - I am still waiting for any answer regarding my previous question > about the fact that I can't exit from a shell when I have background > jobs... It is really important... please help me here...This has been discussed at length, check the archives. -d -- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer
> P.S - I am still waiting for any answer regarding my previous question > about the fact that I can't exit from a shell when I have background > jobs... It is really important... please help me here...http://www.snailbook.com/faq/background-jobs.auto.html - Richard
>The server end is stalling on a reverse lookup. You can switch this >behaviour off (read the manpage).- I believe this is not correct, as I noticed that in case of timeout in reverse lookup I am being stalled right after: debug1: channel 0: open confirm rwindow 0 rmax 16384 When testing ssh between 2 different machines this is what happens: root at machine2:~# ssh machine1 -v -v -v debug1: Reading configuration data /usr/local/etc/ssh_config debug1: Seeding random number generator debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: restore_uid debug1: ssh_connect: getuid 1000 geteuid 0 anon 1 <============> HERE IT GETS STALLED FOR A FEW SECONDS... when running: root at machine2:~# ssh <ip of machine1> -l root -v -v -v Everything works fine... don't tell me the other side knows if I had to resolve it's IP before ;) Remember - I have no active DNS working at these machines and /etc/resolve.conf had some DNS entries, but /etc/nsswitch.conf shows files before DNS... and of course I am having machine1's IP at /etc/hosts of machine2 and vice versa. Another interesting test I have performed: In my other machine I have commented out all entries at /etc/resolve.conf. When running ssh localhost -v -v -v - everything works fine. When I uncommented the entries - I got the a few seconds delay from the DNS (when it told me that it can't resolve localhost...)> > P.S - I am still waiting for any answer regarding my previous question > > about the fact that I can't exit from a shell when I have background > > jobs... It is really important... please help me here... > >This has been discussed at length, check the archives.Yes, I saw it, thanks and sorry... The other issue I was crying about a few months ago (wrong returned code when running a remote application (gives back 255) is being discussed as well at last, ;))>-d > >-- >| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's >| http://www.mindrot.org / distributed filesystem'' - Dan GeerRegards Gil Disatnik UNIX system/security administrator at netish inc. www.netish.com GibsonLP at EFnet _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ "Windows NT has detected mouse movement, you MUST restart your computer before the new settings will take effect, [ OK ]" -------------------------------------------------------------------- Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system, written for a 4 bit processor by a 2 bit company which can not stand 1 bit of competition. -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-