Normally we do connect to any server from WinScp or Putty tool from Windows platform to connect any Linux environment to do various activities.
Here I am going to show how we can enable SSH on Linux Mint operating system. I am using a virtual machine was built on Oracle Virtual Box.
The above image show my virtual machine running on Oracle VM virtual box. Now let me open my putty and try connect to my virtual machine. To know the hostname of the VM you can open the terminal and type “hostname” as shown like below:]
Open Putty :
Click on Open.
After this I get the above error. Now let try to enable SSH on our Linux machine we need to first install “OpenSSH” .
There are two options that we can do to install “OpenSSH” :
- Open the main menu, select the Software Manager
- Search for “Openssh ” on the search box
- Click on the package openssh-server, then select install.
- Once the installation is completed then start SSH by executing “/etc/init.d/ ssh start” command.
Click on “install”
As Linux Mint Operating system is based on Ubuntu , so we can install “openssh” from terminal or console.
Check if port 22 is enabled or not under “sshd_config” file , we can also modify the port in this file to access SSH on another port but I am using the default setup i.e. port 22.
Now let’s try connecting through putty from my local system to the VM .
Now we can see that I am able to connect to my Linux machine using Putty after enabling SSH on VM server.