1748027 Members
4274 Online
108757 Solutions
New Discussion юеВ

Delay in sftp/ssh login

 
SOLVED
Go to solution
Alex Lavrov.
Honored Contributor

Delay in sftp/ssh login

Hello, for some reason I have delay when I'm loggin in into my linux box, I have RedHat AS3.0.

I suspect that it's due to some timout I have somewhere, but I don't know where to look for it.

(btw, I don't use dns, onlt /etc/hosts, so it can't be DNS timeout on resolv)

thanx!
I don't give a damn for a man that can only spell a word one way. (M. Twain)
3 REPLIES 3
Sergejs Svitnevs
Honored Contributor

Re: Delay in sftp/ssh login

Probably it is a DNS issue. Check your /etc/hosts, /etc/resolv.conf, /etc/nsswitch.conf files.

Regards,
Sergejs
Keith Bryson
Honored Contributor
Solution

Re: Delay in sftp/ssh login

If I remember correctly, the default behaviour is for ssh to reverse-lookup your IP for a hostname. This can cause the delay you are seeing. What happens if you put your connecting IP and hostname in /etc/hosts? I assume your /etc/nsswitch.conf file only refers to hosts being resolved by "files", rather than "dns" then?

Keith
Arse-cover at all costs
Alex Lavrov.
Honored Contributor

Re: Delay in sftp/ssh login

Thanx Keith, it worked :)
I don't give a damn for a man that can only spell a word one way. (M. Twain)