How to Enable SSH on Linux Mint 15 /14 / 13 / 12

I have noticed that a lot of people do not know how to enable SSH on Linux Mint systems, so I have decided to make this article.

To enable SSH (secure shell) on Linux Mint 15 Olivia, Linux Mint 14 Nadia, Linux Mint 13 Maya and Linux Mint 12, all you have to do is install the SSH package, which is openssh-server.

$ sudo apt-get update
$ sudo apt-get install openssh-server

To test if SSH works, connect to the localhost. For doing that, you need to find out your local ip address.

Two popular tools for finding out your local ip address are: ifconfig and iproute2.

Type ssh your_ip_address, for testing ssh. Example:

$ ssh 192.168.10.9

OR, paste this oneliner:

$ ssh $(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1 }')

Tagged with: , , , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!
10 comments on “How to Enable SSH on Linux Mint 15 /14 / 13 / 12
  1. Zac says:

    Nice article, short and to the point. You can also type ssh localhost instead of your ip if you just want to test if ssh is running.

  2. Cloud Ace says:

    I follow your steps and I got an error message.

    $ ssh $(ifconfig | grep ‘inet addr:’| grep -v ‘127.0.0.1’ | cut -d: -f2 | awk ‘{ print $1 }’)
    ssh: connect to host 10.0.2.15 port 22: Connection refused
    i use a VB machine.
    Any ideea?

    • Geekster says:

      yes, your ssh service is disabled, install it (it automatically enabled):

      $ sudo apt-get update
      $ sudo apt-get install openssh-server

  3. MapWalker says:

    Nice one.

  4. Ivo says:

    I have installed Linux Mint 15 Olivia with KDE, the machine is not accessible via SSH. I have installed Linux Mint 15 Olivia with XFCE and the machine is accessible: why?
    Is possible SSH in KDE?

  5. Bart says:

    Thanks, helped a lot.

  6. Robert M. Koretsky says:

    Thanks, very useful and to the point!

  7. hugo says:

    Short and simple 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!