Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

SSH Client - Mac OS X Lion
SSH Server - Debian

/etc/hosts on Mac -> [IP of Debian] mydebian
Public key of Mac has already been put to authorized_key in root@mydebian:/root/.ssh
'UseDNS no' has been put to root@mydebian:/etc/ssh/sshd_config and then SSH server restarted

ssh root@mydebian -> wait for a long time to login
ssh -v root@mydebian -> no delay at all

Any ideas?

share|improve this question
Any interesting output with -v / -vvv? – Daniel Beck Jan 23 '12 at 9:07
Can you format this better? – gadgetmo Feb 12 '12 at 9:05
up vote 2 down vote accepted

Set the following value in /etc/ssh_config:

AddressFamily inet 

(You can set it in ~/.ssh/config as well.)

The reason is that ssh is trying to do IPv6 negotiation, which apparently fails after a timeout, which happened to me after migration to a new Lion (10.7.4) MacBook Pro.

share|improve this answer

Can you please check the negative? Put the IP of the source machine in the /etc/hosts and check what happens.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.