Networking Forums

Networking Forums > Computer Networking > Linux Networking > Why is ssh so slow?

Reply
Thread Tools Display Modes

Why is ssh so slow?

 
 
Wolfgang Mueller
Guest
Posts: n/a

 
      03-05-2004, 07:45 PM
I run SuSE Linux 8.1 on two notebooks I have given the the
addresses

192.168.0.1 sony.silberkuhle.de and
192.168.0.2 vobis.silberkuhle.de

with the mask 255.255.255.0

Everything works fine, except for ssh which needs 2-3 minutes before
I get a response.

Why?

Thanks in advance,

Wolfgang

 
Reply With Quote
 
 
 
 
Andy Fraser
Guest
Posts: n/a

 
      03-05-2004, 07:56 PM
Wolfgang Mueller uttered the immortal words:

> I run SuSE Linux 8.1 on two notebooks I have given the the
> addresses
>
> 192.168.0.1 sony.silberkuhle.de and
> 192.168.0.2 vobis.silberkuhle.de
>
> with the mask 255.255.255.0
>
> Everything works fine, except for ssh which needs 2-3 minutes before
> I get a response.
>
> Why?


SSH can't perform a reverse DNS lookup and times out. Either run a local DNS
server or edit /etc/hosts.

--
Andy.
 
Reply With Quote
 
Wolfgang Mueller
Guest
Posts: n/a

 
      03-05-2004, 09:08 PM
On Fri, 05 Mar 2004 20:56:28 +0000, Andy Fraser wrote:
>
> On Fri, 05 Mar 2004 21:45:36 +0100, Wolfgang Mueller
> uttered the immortal words [thanks]:
>
> > I run SuSE Linux 8.1 on two notebooks I have given
> > the addresses
> >
> > 192.168.0.1 sony.silberkuhle.de and
> > 192.168.0.2 vobis.silberkuhle.de
> >
> > with the mask 255.255.255.0
> >
> > Everything works fine, except for ssh which needs
> > 2-3 minutes before I get a response.
> >
> > Why?

>
> SSH can't perform a reverse DNS lookup and times out.
> Either run a local DNS server or edit /etc/hosts.


So far, I have been too lazy for setting up a DNS server;
but, anyway, the the two lines quoted above, i.e.

192.168.0.1 sony.silberkuhle.de
192.168.0.2 vobis.silberkuhle.de

have always been part of the /etc/hosts files of my two
computers. Nevertheless, ssh is so slow. There must be
something else wrong in my computers.

Wolfgang

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      03-06-2004, 03:44 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wolfgang Mueller <(E-Mail Removed)> wrote:
> On Fri, 05 Mar 2004 20:56:28 +0000, Andy Fraser wrote:
> >
> > On Fri, 05 Mar 2004 21:45:36 +0100, Wolfgang Mueller
> > uttered the immortal words [thanks]:
> >


[..]

> > >
> > > Everything works fine, except for ssh which needs
> > > 2-3 minutes before I get a response.


[..]

> 192.168.0.1 sony.silberkuhle.de
> 192.168.0.2 vobis.silberkuhle.de


> have always been part of the /etc/hosts files of my two
> computers. Nevertheless, ssh is so slow. There must be
> something else wrong in my computers.


Yep, but then we don't know what ssh uses on your box,
nsswitch.conf, hosts.conf. Simply 'strace' the login and see what
it does and where it hangs.

Hint
man strace
man 5 resolver

As last resort you can switch off reverse lookup from
sshd_config (man sshd_config).

Good luck

- --
Michael Heiming - RHCE (GPG-Key ID: 0xEDD27B94)

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFASf/oAkPEju3Se5QRAsALAKC/ndUoAEpWfVEFmxRoSXfAjmFf5QCgirPG
x5HZ6UKsspdjlj4GataRRfk=
=jDR3
-----END PGP SIGNATURE-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exceptionally slow ping times, slow DNS lookup and slow download on router Martin Underwood Broadband 1 01-24-2007 12:05 AM
fast PC, slow on LAN, slow with Mac's. barret bonden Windows Networking 2 09-24-2006 03:21 PM
Slow Slow ADSL :( footwo Broadband 1 08-10-2005 02:21 PM
Slow domain logins and slow file copy from XP clients Moses Gross Windows Networking 1 06-10-2004 01:47 AM
Slow modem connection = slow broadband Jon Broadband 0 07-18-2003 08:32 AM



1 2 3 4 5 6 7 8 9 10 11