Votes: 0Posted On: Jul 19, 2017 01:12:02
SSH or Secure Shell is a program used to login to a remote host. It is a secure way of connecting to a remote host with different levels of authentication. It can also be used to transfer files from local to remote host and vice versa. Many file transfer programs such as "scp" use the services of ssh.
In this article, we will focus on how to install, start, stop or restart an SSH service on Ubuntu 14.04 operating system.
1. Update the Ubuntu repositories by running the following command.
sudo apt-get update
sudo apt-get upgrade
2. Once the repositories have been updated, install the open SSH server with the help of the following command.
sudo apt-get install openssh-server
Start SSH server
Once the SSH server is installed, it has to be started with either of the following commands.
sudo /etc/init.d/ssh start
sudo service ssh start
Stop SSH server
If you wish to stop the SSH service, you can do so with the help of the following command.
sudo /etc/init.d/ssh stop
sudo service ssh stop
Restart SSH server
In some of the cases, it is needed to restart the SSH server. Please run the following command to restart SSH server.
sudo /etc/init.d/ssh restart
sudo service ssh restart