Port 22 setup on VirtualBox

Опубликовано: 27 Март 2026
на канале: The Cloud Academy
148
2

Join the telegram group: @tca2024cohortA

This setup on virtualbox enables you connect via SSH from another terminal in your local computer to your Ubuntu server in VirtualBox.
After this setup, go to your terminal in your computer (gitbash, mobaxterm, powershell etc) and enter the following command:

ssh -p 2222 YOURUBUNTUUSERNAME@localhost

Note: if your terminal does not have openssh installed, install, enable and start ed , it will not work. To install, enable and start openssh, use the below commands.

sudo apt install openssh-server -y
sudo systemctl enable ssh
sudo systemctl start ssh