Install Openssh server on Ubuntu Desktop / Server

FAQ : How to connect to Ubuntu Desktop / Server by using ssh. I just installed Ubuntu 14.04 LTS Desktop edition and have not found ssh service running in system.

Answer : OpenSSH is a FREE version of the SSH connectivity tools. It provides the encrypted communication between computers by using ssh protocol.

History of OpenSSH (Reference taken from WikiPedia)

OpenSSH was created by the OpenBSD team as an alternative to the original SSH software by Tatu Ylönen (http://www.ssh.com), which is now proprietary software. Although source code is available for the original SSH, various restrictions are imposed on its use and distribution. OpenSSH was created as a fork of Björn Grönvall’s OSSH that itself was a fork of Tatu Ylönen’s original free SSH 1.2.12 release, which was the last one having a license suitable for forking. The OpenSSH developers claim that their application is more secure than the original, due to their policy of producing clean and audited code and because it is released under the BSD license, the open source license to which the word open in the name refers.

Install OpenSSH server on Ubuntu Desktop/Server

To install the OpenSSH server, use apt-get command

sudo apt-get install openssh-server

Start/Stop/Status/Restart of ssh service

To get status of ssh service –

sudo service ssh status

To start ssh service –

sudo service ssh start

To stop ssh service –

sudo service ssh stop

To restart ssh service –

sudo service ssh restart

How to connect to remote system by using ssh

To connect by using ssh, in your linux/Unix/MacOS system openssh-client package should be installed.

From Linux/Unix/MacOS, run the command in terminal with below given syntax.

ssh -p 22 username@Remote-System-IP-Address

ssh = It is ssh command to connect with system where ssh server is installed and running
-p 22 = -p is for port number. 22 is defualt port no. for ssh. In case, you have ssh custom port no., replace 22 with your custom port no.
username = Give system username eg. root
Remote-System-IP-Address = Use ip address of remote system

On Ubuntu/Debian System., install by using below given client.

sudo apt-get install openssh-client

On Red Hat / CentOS. install by using below given command

yum install openssh-clients

Windows user can use the third party tool called putty.
putty

2 thoughts on “Install Openssh server on Ubuntu Desktop / Server”

  1. how to do cluster in ubuntu , i want to use power of more than one pc for big computation

Comments are closed.