Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
On 2015-04-08 16:45:16 -0600, Bob Proulx wrote: > I see mdns there and immediately have an immune reaction due to many > problems with it before. As you have already determined it is the > source of your current 5 second timeout. I recommend purging > libnss-mdns from your system. That will solv

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Igor Cicimov
On 09/04/2015 9:38 AM, "Igor Cicimov" wrote: > > > On 09/04/2015 3:11 AM, "Vincent Lefevre" wrote: > > > > When connecting by SSH to a particular machine, ssh hangs for > > 5 seconds. The client machine doesn't matter (except for the > > machine itself). For instance: > > > > xvii:~> ssh -vvv 2>>

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Igor Cicimov
On 09/04/2015 3:11 AM, "Vincent Lefevre" wrote: > > When connecting by SSH to a particular machine, ssh hangs for > 5 seconds. The client machine doesn't matter (except for the > machine itself). For instance: > > xvii:~> ssh -vvv 2>>(ts -s "%.s") ypig > [...] > 0.278462 debug2: key: /home/vinc17/

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Bob Proulx
Vincent Lefevre wrote: > Vincent Lefevre wrote: > > Bob Proulx wrote: > nameserver 140.77.1.32 > nameserver 140.77.167.2 That is a second potential source of timeout. man resolv.conf nameserver Name server IP address Internet address of a name server that the resolve

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
On 2015-04-09 00:09:08 +0200, Vincent Lefevre wrote: > According to > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=414569 > "avahi-daemon: delay on resolving IP addresses when mdns is > specified in /etc/nsswitch.conf" > > the 5-second delay shouldn't occur, as this bug was fixed wit

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
On 2015-04-08 23:57:53 +0200, Vincent Lefevre wrote: > On 2015-04-08 14:27:38 -0600, Bob Proulx wrote: > > grep "^hosts" /etc/nsswitch.conf > > hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 [...] > [...] > 23:54:03 mprotect(0x7f5b92ff3000, 4096, PROT_READ) = 0 > 23:54:03 munmap

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
On 2015-04-08 14:27:38 -0600, Bob Proulx wrote: > Vincent Lefevre wrote: > > Yes, but with nslookup, the failure is *immediate*. So, this doesn't > > explain the 5-second delay. > > What is the configuration of /etc/resolv.conf? /etc/nsswitch.conf? > > cat /etc/resolv.conf domain lip.ens-lyon

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Bob Proulx
Vincent Lefevre wrote: > Michael Graham wrote: > > Vincent Lefevre wrote: > > > # /usr/sbin/sshd -D -ddd -p 80 -f /etc/ssh/sshd_config 2>>(ts -s "%.s") > > > [...] > > > (I use port 80 since port 22 is already taken by the normal sshd and > > > the gateway to the machine seems to filter arbitrary

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
On 2015-04-08 13:46:06 -0400, Michael Graham wrote: > On 8 April 2015 at 13:41, Vincent Lefevre wrote: > > # /usr/sbin/sshd -D -ddd -p 80 -f /etc/ssh/sshd_config 2>>(ts -s "%.s") > > [...] > > 3.315346 debug3: Trying to reverse map address 140.77.51.8. > > So sshd is doing the reverse lookup and

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Michael Graham
On 8 April 2015 at 13:41, Vincent Lefevre wrote: > # /usr/sbin/sshd -D -ddd -p 80 -f /etc/ssh/sshd_config 2>>(ts -s "%.s") > [...] > 3.315346 debug3: Trying to reverse map address 140.77.51.8. So sshd is doing the reverse lookup and fails > ypig:~> nslookup 140.77.51.8 > ;; Got SERVFAIL reply fr

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
On 2015-04-08 19:21:12 +0200, Sven Hartge wrote: > Vincent Lefevre wrote: > > > When connecting by SSH to a particular machine, ssh hangs for > > 5 seconds. The client machine doesn't matter (except for the > > machine itself). > > 5 seconds smells like some DNS problem. Yes, but the result is

Re: ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Sven Hartge
Vincent Lefevre wrote: > When connecting by SSH to a particular machine, ssh hangs for > 5 seconds. The client machine doesn't matter (except for the > machine itself). 5 seconds smells like some DNS problem. Grüße, Sven. -- Sigmentation fault. Core dumped. -- To UNSUBSCRIBE, email to debi

ssh hangs for 5 seconds for a particular machine

2015-04-08 Thread Vincent Lefevre
When connecting by SSH to a particular machine, ssh hangs for 5 seconds. The client machine doesn't matter (except for the machine itself). For instance: xvii:~> ssh -vvv 2>>(ts -s "%.s") ypig [...] 0.278462 debug2: key: /home/vinc17/.ssh/id_rsa (0x7f943e415e90), explicit 0.278513 debug2: key: rsa