ssh to Ubuntu 16.04 running on Oracle VM VirtualBox

I. In Ubuntu VM:

1. Localhost IP (ifconfig):

2. Install the ssh server and client
$ sudo apt-get install ssh

3. Default SSH is listening on port 22
$ ssh gudiseva@

4. Reconfigure the port for the ssh server
$ sudo nano /etc/ssh/sshd_config
Change Port 22 to Port 2222

5. Reload the configuration
$ sudo service ssh force-reload

6. Test the connection
$ ssh gudiseva@ -p 2222


II. In Oracle VM VirtualBox Manager:




Host / IP Address:
Port: 22


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.