wp.jochen.hayek.name/blog-en

VirtualBox: multiple virtual machines with SSH servers on port 22 – how to reach them?

In the VirtualBox Manager:

> Settings > Network > Port Forwardings > for every virtual machine add a service with a new, unique Host Port (e.g. 2229), the Guest Port always set to 22 – if that’s the port, your local SSH server is listening on.

Once that’s completed, you can reach a specific one like this:

$ ssh -p 2229 localhost
Exit mobile version