Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jun 18 '13 at 8:04

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

1 Answer 1

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.

see: https://www.google.fr/search?q=libvirt+redirect+port

share|improve this answer

Your Answer

 
discard

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.