You can enable SSH in Ubuntu 14.04 within a couple of minutes. In this tutorial we will explain how you can enable ssh in Ubuntu 14.04 Trusty Tarh.
The first thing you will need to verify, is the fact if you have openssh installed on your Ubuntu 14.04 Trusty Tahr server and If it is running.
To verify if the SSH server is running, you can perform the following command in the terminal;
sudo netstat -natp | grep sshd
This should provide something like this;
tcp 0 0 [IP]:[PORT] 0.0.0.0:* LISTEN [PORT]/sshd
How to install and enable SSH in Ubuntu 14.04 Trusty Tarh
In order to install and enable the SSH service in Ubuntu, you will have to install the openssh-server package via the apt-get command.
Type the following in your terminal to install SSH on your Ubuntu server;
Sudo apt-get install openssh-server
Once the openssh-server has been installed, you will need to configure the ssh_config file which you can find in the /etc/ssh/ directory.
Type the following command to edit the ssh_config file to enable ssh login;
Sudo nano /etc/ssh/ssh_config
Once you are done editing the ssh_config file, you will have to restart the SSH service.
You can do this by typing the following command in the terminal;
Sudo service ssh restart