How to Enable SSH Service in Ubuntu 16.10

OpenSSH

For those who want to connect to Ubuntu via Secure Shell (SSH) network protocol, Ubuntu offers OpenSSH, a fork of the free SSH program, in its main archive.

OpenSSH (OpenBSD Secure Shell) is a suite of security-related network-level utilities based on the Secure Shell (SSH) protocol, which help to secure network communications via the encryption of network traffic over multiple authentication methods and by providing secure tunneling capabilities.

Install OpenSSH in Ubuntu:

To install OpenSSH in Ubuntu, simply open terminal from App Launcher or via Ctrl+Alt+T keys. When it opens, run command:

sudo apt install openssh-server

install-openssh

After installing the software, it automatically starts the SSH service in your Ubuntu.

In addition, you can edit the configuration file to change the SSH listening port, root login permission, etc by running command (replace gedit with nano in Ubuntu Server):

sudo gedit /etc/ssh/sshd_config

openssh-config

After saving the changes, you need to restart the SSH service via command:

sudo service ssh restart

About ml

ml is a part time stay-at-home dad who've been using Ubuntu Desktop for a few years. He writes in the free time and wishes to share some useful tips with Ubuntu beginners and lovers.