DEV Community 👩‍💻👨‍💻

Discussion on: How To: Ssh Into Ubuntu VM Virtualbox From Host Machine

Collapse
ndrean profile image
NDREAN • Edited on

Thank you very much, you gave the clue I was looking for: "Where user is your username within the VM"
ssh -p 2222 [VM-username]@127.0.0.1

Collapse
unknown850 profile image
Mr Unknown

Example, your guest machine(the VM) name is "User", so the command going to be
ssh -p 2222 user@127.0.0.1