[SOLVED] SSH - Slow Login
Posted: 2012/03/26 17:38:22
Hi,
I am having random ssh issues. Sometimes when I try to login it gives me following
user@HOSTNAME:~$ ssh root@SERVER
root@SERVER's password: <-- Waits here for about a minute or so
Write failed: Broken pipe
And sometimes it takes a lot of time for login prompt to come up and once password is entered it takes lot of time to login. I Googled and found that slow login prompt could be because of DNS and I changed the DNS and login prompts are almost instantaneous. However it still takes time after entering the password.
I also did ssh -vvv root@SERVER and still is very slow
root@SERVER's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session. <-- very slow from this point onwards and takes about 30-45secs to complete the login
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Mon Mar 26 13:24:58 2012 from X.X.X.X
[root@SERVER ~]#
The ssh server is CentOS 5.8 and client is Ubuntu 10.04.
Thanks in advance!
Mayank
I am having random ssh issues. Sometimes when I try to login it gives me following
user@HOSTNAME:~$ ssh root@SERVER
root@SERVER's password: <-- Waits here for about a minute or so
Write failed: Broken pipe
And sometimes it takes a lot of time for login prompt to come up and once password is entered it takes lot of time to login. I Googled and found that slow login prompt could be because of DNS and I changed the DNS and login prompts are almost instantaneous. However it still takes time after entering the password.
I also did ssh -vvv root@SERVER and still is very slow
root@SERVER's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session. <-- very slow from this point onwards and takes about 30-45secs to complete the login
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Mon Mar 26 13:24:58 2012 from X.X.X.X
[root@SERVER ~]#
The ssh server is CentOS 5.8 and client is Ubuntu 10.04.
Thanks in advance!
Mayank