Super User is a question and answer site for computer enthusiasts and power users. 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

I have libvirt+lvm+kvm setup on dedicated server with one virtual guest inside. I can access guest from host using ssh and ip of guest, but I can't understand how do I access guest from my laptop using ssh. It seems to ssh to host and then it fails, because there is no such user (and this user exists only inside VM). Also, there is nginx installed on both host and vm and nginx proxies all requests for subdomain to vm's nginx (what is awesome and works as I expect).

So I need to somehow ssh from my local laptop to vm, bypassing vm host system.

share|improve this question

migrated from Jun 18 '13 at 8:04

This question came from our site for professional and enthusiast programmers.

up vote 0 down vote accepted

seems to me that you need to set an iptables rule or something like this to tunnel connections from another port on the host (2222 for example) to the guest 22 port.


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .