Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • That sounds pretty cool, and it might end up being what I do. I don't have much experience with ssh, but the vm can tell the difference right? i.e. a process running under root on the host would be able tell if a command was sent through ssh or typed in directly? Commented Feb 15, 2012 at 1:29
  • There are environment variables that are set by sshd, such as SSH_CLIENT, SSH_CONNECTION and SSH_TTY where you can tell that it's a ssh connection. Beyond that, there is no difference. How I've done it most consistently is to set up a small DNS zone for my home network and assigned IP addresses for each of my hosts. Then I don't have to worry about new IPs from DHCP that are not set in /etc/hosts or ~/.ssh/config (my router doesn't resolve reverse DHCP addresses, IP->hostname). Any host on the network can get access to the VM guest, including my wife's macbook. Commented Feb 15, 2012 at 2:19