User Tools

Site Tools


Virtualbox ssh forwarding

NAT network needs to be the first adapter in VM settings.

List vms:

VBoxManage list vms

Create rule:

VBoxManage modifyvm "Debian 9" --natpf1 "debian9ssh,tcp,,<hostport i.e. 5622>,,<guest port i.e. 22>"

Show port forward:

VBoxManage showvminfo "Debian 9" | grep Rule


ssh -p 5622 root@

Tested on

See also


wiki/virtualbox_ssh_forwarding.txt · Last modified: 2022/11/12 12:39 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki