Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created December 18, 2012 11:56
Show Gist options
  • Save yuanmai/4327386 to your computer and use it in GitHub Desktop.
Save yuanmai/4327386 to your computer and use it in GitHub Desktop.
VirtualBox ssh NAT
VBoxManage modifyvm "Your VM Name" --natpf1 "guestssh,tcp,,2222,,22"
ssh root@localhost -p 2222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment