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 }')
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.
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?
yes, your ssh service is disabled, install it (it automatically enabled):
$ sudo apt-get update
$ sudo apt-get install openssh-server
Nice one.
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?
yes it is possible.
Yes, I’m using Linx Mint 1 KDE and i got it to work by adding this line under the above commands
sudo /usr/bin/ssh-keygen -A
Thanks, helped a lot.
Thanks, very useful and to the point!
Short and simple 🙂