System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

very slow when logging in to Rehat Linux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

very slow when logging in to Rehat Linux

Hi All,

I am using putty tool to login to Redhat linux thru SSH.

We are using lot of Redhat linux server, but in one of Redhat linux servers, it is delaying long (>30secs) to get the password prompt after enter the user name in login prompt.

Why there is delay between login prompt and password prompt even after login name entered.

how to solve this.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: very slow when logging in to Rehat Linux

Shalom,

1) Take a look at /var/log/messages

2) Docs
http://bowen.blog.51cto.com/136148/100456

Almost always the logs tell the tail.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
John Poff
Honored Contributor
Solution

Re: very slow when logging in to Rehat Linux

Hi,

One thing to check is the DNS resolution on that Linux box. I have seen that problem before when name resolution wasn't configured correctly on a Linux box and SSH couldn't do a reverse lookup on the hostname when someone was trying to start a session. It times out after 30 seconds and then allows the login.

JP
Sivakumar MJ._1
Respected Contributor

Re: very slow when logging in to Rehat Linux

Senthil,

Mostly its a DNS issue..

Check the /etc/ssh/sshd_conf set

UseDNS no

or

#UseDNS yes

does it therefore assume no?
For HP Online Case Logging-->http://support.openview.hp.com/
Steven E. Protter
Exalted Contributor

Re: very slow when logging in to Rehat Linux

Shalom,

I misinterpreted this issue.

Add a line to /etc/hosts

IP address and named hostname(s) being used to log in.

That will solve this problem.

See that /etc/nsswitch.conf uses files before DNS.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com