Take the 2-minute tour ×

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
add comment

1 Answer

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
add comment

Your Answer


