Re: how to debug ssh slow connection issues.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Try to change this in your /etc/ssh/sshd_config:

If in CentOS 5, change:

AddressFamily any
to:
AddressFamily inet

If in CentOS 4, change:

ListenAddress ::
to:
ListenAddress <ip_address_of_your_server_here>

Uncomment those lines if needed.

Change:

GSSAPIAuthentication yes
to:
GSSAPIAuthentication no

Change:

UseDNS yes
to:
UseDNS no

Uncomment the last line if applicable.

Then restart your sshd and try to connect again, see if that improved
the situation or not. If it did, it's related to DNS.

Keep a backup of your original file and restore it later. Better yet,
do the changes on a copied file and then start sshd in the command
line in debugging mode with the -f option to specify the new config
file.

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux