Re: slow to log in using ssh

From: Bill Vermillion (bv_at_wjv.comREMOVE)
Date: 09/10/03


Date: Wed, 10 Sep 2003 00:27:04 GMT

In article <euV0b.212039$YN5.146413@sccrnsc01>,
Stephen Montgomery-Smith <stephen@math.missouri.edu> wrote:
>I was reading the other thread about someone finding log in using ssh to be
>slow, because of problems with reverse DNS.
>
>I am finding that I sometimes have the same problem. I have a local area
>network with about 4 computers. When the connection to the outside world is
>temporarily non-functional (as is fairly frequent with a cable modem), I am
>seeing that connecting from one computer to another using ssh on the LAN is slow.
>
>I ran "/usr/sbin/sshd -d -d -d" on one computer and ssh'ed from another. I saw
>that it was trying to do a reverse DNS on 10.0.0.3, which is the IP number of
>the connecting computer.
>
>Here are my questions:

>1. I have an entry for 10.0.0.3 in my /etc/hosts file? Why
>doesn't sshd look there first before trying to do a reverse DNS
>on the external domain name servers?

Do the other computers on your network use that file? Not really -
but if you put DNS on that machine they could use it.
I just checked my local machines and I get about 2 seconds
from the time I issue the command until I get a login prompt.

I also get about 2 seconds to some machines I admin at a colo which
is physially about 10 miles from here - but take a 1500 mile trip
on the 'net.

So make the /etc/hosts identical in all machines. Because the
name/IP match needs to occur on the machine you are connecting to.

Bill

-- 
Bill Vermillion - bv @ wjv . com


Relevant Pages

  • Re: usb splitter -- is there such thing?
    ... Consider installing the printer on one computer, connecting the ... computers together with a LAN, setting up a work group and activating ... printer sharing. ... relatively new machines may only require a crossover cable. ...
    (microsoft.public.windowsxp.hardware)
  • RE: What is wong with XP netwroking?
    ... I've applied must have broken the networking in some way, ... >My two XP machines are completely unable to talk to each ... Eliminating the router as a suspect by connecting the ... of dancing around the computers shaking a rattle and ...
    (microsoft.public.windowsxp.network_web)
  • Re: usb splitter -- is there such thing?
    ... Consider installing the printer on one computer, connecting the computers together with a LAN, setting up a work group and activating printer sharing. ... As far as hardware is concerned, connecting two relatively new machines may only require a crossover cable. ... Connecting three or more machines may require a regular category 5 network cable for each computer and a single router. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Computers Return from the Dead
    ... If the computers weren't removed properly then it is possible that your DNS is out of sync with the rest of the system. ... Check your reverse DNS records and see if there are ptr records for the old machines. ... It is possible that new machines now have those old IP addresses and thus causing problems. ... AND they seem to have 24hr/day web activity. ...
    (microsoft.public.windows.server.sbs)
  • Cannot access XP Machine in workgroup.
    ... I have the identical problem connecting two computers ... Both have independent Internet ... >because if view workgroup computers all 3 machines show ...
    (microsoft.public.windowsxp.network_web)

Loading