Delay during a SSH connection under Linux

Last update on June 9, 2009 10:29 AM by jak58
Published by deri58

Delay during a SSH connection under Linux







When connecting to an SSH server, it takes a lot of time for logging (e.g, ssh server on Debian).

This is due to a problem from the name resolution of the server.

The server will try to use the name resolution mdns(part of the self-discovery/self-configuring network protocol of Zeroconf).


The delay is due to pending response of the mdns.

Solution 1


Disable Avahi daemon.

http://en.kioskea.net/faq/sujet 739 disabling the avahi daemon

Solution 2


In /etc/ssh/sshd_config, add: UseDNS no
Best answers for « Delay during a SSH connection under Linux » in :
Log in remotely with SSH (Linux) Show Log in remotely with SSH (Linux) Issue Solution Using SSH through a proxy: Issue Log in remotely with SSH under Linux. Solution The commands below are relevant only if you have an existing account on the PC you want to connect and...
Log in remotely with SSH (Windows) Show Log in remotely with SSH (Windows) Issue Solutions Graphical mode Issue Unlike Linux, the SSH client is not endemic to Windows OS. First of all you must have one installed. Solutions Click on the following link: Download SSH...
File transfer via SSH ShowSSH - Secure SHell SSH allows the use of pipelines controls, and use inputs / outputs pipes as any other commands , on the basis that redirection is done to or from the remote machine. This may be used to transfer files: ssh server...
[ssh/X11] Launch an application with the rights of another user Show[ssh/X11] Launch an application with the rights of another user Intro With X11, you are able to run graphical applications remotely through an ssh connection. But this will not work if you want to launch applications with the rights of...
[Linux]Restarting the network interface using command lines Show[Linux]Restarting the network interface using command lines When setting up a network, specially if you need to verify that a DHCP server assigns IP addresses correctly, restarting the network interface using command lines rather than the...
Download SSH Secure Shell ShowSSH secure shell for workstations is a flexible client SSH allowing to connect in a secured way to remote applications. http://www.commentcamarche.net/faq/images/NHc6wz5jOYBhPXTis.png
Download PS3 Media Server ShowThis simple and free software is designed to connect PS3 to a computer in DLNA in for webradios, youtube and automatic encryption. It does not require any codec pack. This software supports all PS3 formats: MP3, JPG, PNG, GIF, TIFF and all types...
Creating an ad hoc WiFi network ShowPresentation of the ad hoc WiFi network If you have two or more computers equipped with wireless adapters (WiFi cards), it is possible to easily connect them in a network by setting up a so-called "ad hoc" network, that is, a computer-to-computer...
Sharing an Internet connection ShowAdvantagesIf you have a LAN (two computers or more connected in a network), of which one is connected to the Internet (via a DSL modem, cable, etc.), it may be worthwhile to make the Internet accessible to the other computers on the LAN by installing...
Sharing an Internet connection ShowAdvantages If you have a local area network (two or more computers connected in a network) with one computer connected to the Internet (via a modem, using a cable, etc.), it may be useful to make the connection accessible to the other computers on...