Hi
How I can configure sshd_config to improve the ssh faster?
It is slow to prompt the login
Thank you
I heard it before
but how can be solved?
Thank you
--- On Wed, 5/5/10, Barry Brimer lists@brimer.org wrote:
From: Barry Brimer lists@brimer.org Subject: Re: [CentOS] ssh slow To: "CentOS mailing list" centos@centos.org Received: Wednesday, May 5, 2010, 8:47 PM
How I can configure sshd_config
to improve the ssh faster?
It is slow to prompt the login
That usually indicates a DNS problem. sshd tries to do a reverse DNS resolution to lookup the connecting client.
Barry _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
but I put this to no
the ssh is still slow
any hints
thank you
--- On Wed, 5/5/10, John R Pierce pierce@hogranch.com wrote:
From: John R Pierce pierce@hogranch.com Subject: Re: [CentOS] ssh slow To: "CentOS mailing list" centos@centos.org Received: Wednesday, May 5, 2010, 8:52 PM ann kok wrote:
Hi
How I can configure sshd_config to improve the ssh
faster?
It is slow to prompt the login
badly configured reverse DNS on the client hosts is the most common cause of this. try ...
UseDNS no
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
From: ann kok oiyankok@yahoo.ca
ssh is still slow
Tried to use verbose to see what's going on...? ssh -vvv
JD
I've found that if I'm on an Ubuntu machine and SSHing to a Centos 5.4 machine, it does the same thing, i.e. it sort of hangs for a while then comes back after about 10-15 secs with a login prompt.
I've found that editing the /etc/ssh/ssh_config (note ssh_config, NOT sshd_config) file on the Ubuntu box and *commenting out* the following fixes it immediately, without needing to restart anything:
GSSAPIAuthentication yes GSSAPIDelegateCredentials no
Change the above 2 lines to
#GSSAPIAuthentication yes #GSSAPIDelegateCredentials no
and try again.
On 06/05/10 13:25, ann kok wrote:
but I put this to no
the ssh is still slow
any hints
thank you
On Thu, 2010-05-06 at 16:39 +0100, Khusro Jaleel wrote:
I've found that if I'm on an Ubuntu machine and SSHing to a Centos 5.4 machine, it does the same thing, i.e. it sort of hangs for a while then comes back after about 10-15 secs with a login prompt.
I've found that editing the /etc/ssh/ssh_config (note ssh_config, NOT sshd_config) file on the Ubuntu box and *commenting out* the following fixes it immediately, without needing to restart anything:
GSSAPIAuthentication yes GSSAPIDelegateCredentials no
Change the above 2 lines to
#GSSAPIAuthentication yes #GSSAPIDelegateCredentials no
and try again.
On 06/05/10 13:25, ann kok wrote:
but I put this to no
the ssh is still slow
any hints
thank you
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Try disabling both reverse DNS and GSSAPIAuthentication
http://www.taiter.com/blog/2009/04/disabling-reverse-lookup-for-s.html
Tait
On 5/6/10 10:20 AM, "Tait Clarridge" tait@clarridge.ca wrote:
On Thu, 2010-05-06 at 16:39 +0100, Khusro Jaleel wrote:
I've found that if I'm on an Ubuntu machine and SSHing to a Centos 5.4 machine, it does the same thing, i.e. it sort of hangs for a while then comes back after about 10-15 secs with a login prompt.
I've found that editing the /etc/ssh/ssh_config (note ssh_config, NOT sshd_config) file on the Ubuntu box and *commenting out* the following fixes it immediately, without needing to restart anything:
GSSAPIAuthentication yes GSSAPIDelegateCredentials no
Change the above 2 lines to
#GSSAPIAuthentication yes #GSSAPIDelegateCredentials no
and try again.
On 06/05/10 13:25, ann kok wrote:
but I put this to no
the ssh is still slow
any hints
thank you
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Try disabling both reverse DNS and GSSAPIAuthentication
http://www.taiter.com/blog/2009/04/disabling-reverse-lookup-for-s.html
Tait
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Unless of course you ARE using GSSAPI for auth (environment using Kerberos for auth), and then at that point, you need to look at the connection between you, the server in question, and your KDC. If that is having hiccups, you'll get slow authentication speeds.
----- Original Message ----
From: ann kok oiyankok@yahoo.ca To: centos@centos.org Sent: Wed, May 5, 2010 9:44:12 PM Subject: [CentOS] ssh slow
Hi
How I can configure sshd_config to improve the ssh faster?
It is slow to prompt the login
Fix your DNS setup and/or configure it to "UseDNS no". Such slowdowns happen because sshd tries to get a reverse DNS lookup of your IP address.
It can be a big PITA when you try to login into a server to fix a broken DNS and the login times out because it tries to get a that PTR record back......
Just remember the mantra: "most weird network problems are related to DNS problems....."
Fer