How to Install and Configure Openssh Server in Ubuntu 16.04, 17.04, 18.04, 19.04

Share on :

How to Install and Configure OpenSSH Server in Ubuntu 16.04, 17.04, 18.04, 19.04

SSH (Secure Shell Host) is one of the most and widely used way to take login to remote systems. SSH is mostly used in VPS (Virtual Private Server) and Cloud Servers or Instances. We can even setup in our local environment to get remote login to our local systems.

Lets setup ssh in a Ubuntu Machine.

1) Install openssh-server package in ubuntu.

sudo apt update -y
sudo apt install openssh-server

2) Start and enable the ssh service.

sudo systemctl start ssh
sudo systemctl enable ssh

3) Now try to ssh to this system by other system using the following command or you can test it on the same system also.

ssh username@remote-IP

It will prompt for the user password and after passing the user password you will be logged into that system. but ssh login as root user will not work. click on the link below to setup ssh root login in ubuntu.
How to enable root user ssh login in Ubuntu 16.04, 17.07, 18.04 & 18.10

Share on :

You may also like...

Leave a Reply

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