Connections to SSH and Samba suffer from heavy delay
Posted
by
Till Helge Helwig
on Server Fault
See other posts from Server Fault
or by Till Helge Helwig
Published on 2012-10-23T09:04:18Z
Indexed on
2012/12/17
17:05 UTC
Read the original article
Hit count: 256
There are a lot of questions about SSH connections being delayed, which usually can be fixed by disabling the DNS lookups. Unfortunately this doesn't seem to be my problem.
Our development server is accessed via SSH and Samba. When opening a connection to the server (either SSH or Samba) it takes a very long time. Accessing a Samba share via Windows is basically impossible because there is a timeout. Using smbclient works, but takes ages. When opening a SSH connection I get immediately prompted for the password and after hitting Enter the terminal instantly shows the MOTD. Afterwards it takes about a minute for the prompt to appear.
I watched the load of the server while connecting via SSH and Samba and could not find anything out of order. There is nothing out of the ordinary running and hogging up memory and CPU or something. I have no clue where this delay might come from. I already tried UseDNS no
in sshd_config and proxy_dns = no
in smb.conf, but to no avail.
Any idea about what might cause this would be greatly appreciated!
© Server Fault or respective owner