ssh to Ubuntu 16.04 running on Oracle VM VirtualBox

I. In Ubuntu VM:

1. Localhost IP (ifconfig): 127.0.0.1

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

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

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@127.0.0.1 -p 2222

 

II. In Oracle VM VirtualBox Manager:

Oracle_VirtualBox_Port_Forward_SSH

 

III. In PuTTY / WinSCP:

Host / IP Address: 127.0.1.1
Port: 22

 

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s