Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

When using some kind of XEN VM's as user, how can I get trace to host where SSH leads to?

I encountered problem, that when listening SSH server on ip from ifconfig, I couldn't connect to it. Need to get know on what IP should I listen to incoming connections...

share|improve this question
up vote 3 down vote accepted

Have you tried something like tcptraceroute from the client machine? That will reveal the network path without falling foul of firewalls that are blocking icmp.

Or are you saying you don't know which interface you need to have SSH listening on? If that's what you mean then you can infer the answer from your routing table, so for example if your client machine is and your server is multi homed with interfaces eth0 and eth1

$ ip route get via dev eth0 src 

Would tell you that ssh needs to listen on eth0

share|improve this answer
great, that helped :) – Marek Sebera Oct 10 '11 at 15:11

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.