We might want to test our software and the Docker container might not ideal. We need to configure the Port Forwarding for Virtualbox and connect through this port instead of port 22.
Guest Port is VM’s port 22
Host Port is the main computer that we run Virtualbox. We pick a port so the VB will forward the connection between VM’s port 22 and PC’s port 3022 (for example).
Then in Window PC we use powershell to connect.
ssh -p 3022 debian@127.0.1.1
Note: if we don’t want to use port forward, we select Host-only Adapter.
Download the Debian 11 VirtualBox Image here.