Archives For openssh

Enable SSH Ubuntu 16.04

Here’s how to enable Secure Shell (SSH) service in Ubuntu 16.04 Xenial Xerus, the new LTS release, to allow secure remote login and other network communications.

Ubuntu provides OpenSSH (OpenBSD Secure Shell) in its universe repositories, which is a suite of security-related network-level utilities based on the SSH protocol.

1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command:

sudo apt-get install openssh-server

install openssh server

2. After that, you should have SSH service enabled in your system, you may check its status by running command:

sudo service ssh status

check ssh status

3. You may change some settings (e.g., the listening port, and root login permission) by editing the configuration file via command:

sudo nano /etc/ssh/sshd_config

On Ubuntu desktop, you may use gedit instead of nano:

SSH settings

Finally apply the changes by restarting or reloading SSH:

sudo service ssh restart

For more, read the official manual page.

openssh

SSH service is not enabled by default in Ubuntu both Desktop and Server, but you can easily enable it just by one command. Works on Ubuntu 13.04, 12.04 LTS, 10.04 LTS and all other releases.

And the command is:

sudo apt-get install openssh-server

It installs OpenSSH server, then automatically enable ssh remote access.

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. Users of telnet, rlogin, and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.

You can edit the config file “/etc/ssh/sshd_config” to change default port 22, remember to apply changes via the command below:

sudo /etc/init.d/ssh restart

Enjoy!