Server Fault is a question and answer site for system and network administrators. 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

I have two machines with same subnets X.Y.Z.1 and X.Y.Z.2 I connect them directly with a crossover cable. I can

$ ping X.Y.Z.2

from X.Y.Z.1 and the response is machine 2 is alive but if I do something like

$ ping -s X.Y.Z.2

it hangs. machine 1 is open solaris. Machine 2 has been hpUX, LINUX and Solaris Sparc second test

$ssh X.Y.Z.2

connects and asks for DSA key, which I accept with "yes", then it hangs

share|improve this question
up vote 2 down vote accepted

Your problems are due to not having dns working. It looks like Solaris ping -s hangs if dns lookups don't work. ssh also tries to do a reverse dns lookup on connections so it will hang for a long time if dns doesn't work.

To make ssh work, you should be able to edit the /etc/ssh/sshd_config file on the server and add

UseDNS no

and of course instead of using ping -s just use regular ping without the -s to disable the dns lookups.

share|improve this answer
Thanks the quick spot on answer ! – Kyle Hailey Mar 23 '11 at 5:37
You're welcome. Please accept my answer if it worked for you. – Phil Hollenback Mar 23 '11 at 5:51

Are you sure it is hanging and not just timing out while ssh is attempting to do a DNS lookup? Try waiting 60 seconds and see what happens. I'll bet it works.

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.