Enable SSH server in Linux Mint

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. 

image

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:]

image

Open Putty :

image

Click on Open.

image

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” :

Option 1:

  • 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.

image

image

image

image

Click on “install”

Option 2: 

As Linux Mint Operating system is based on Ubuntu , so we can install “openssh” from terminal or console.

 

image

image

image

image

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.

image

Now let’s try connecting through putty from my local system to the VM .

image

 

image

 

image

Now we can see that I am able to connect to my Linux machine using Putty after enabling SSH on VM server.

Advertisements

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