Quick Tip: Enable SSH service in Ubuntu 17.10

OpenSSH Service

This quick tutorial is going to show beginners how to enable the Secure Shell (SSH) service in Ubuntu 17.10.

Ubuntu offers OpenSSH, OpenBSD Secure Shell, in its universe repository. It is a suite of security-related network-level utilities based on the SSH protocol.

To install it, open terminal via Ctrl+Alt+T or login to command console and run command:

sudo apt-get install openssh-server

Type in your password (no visual feedback while typing due to security reason) when it prompts and hit Enter.

openssh-server

Once installed, the SSH service starts automatically. To check its status run command:

sudo service ssh status

you may replace status in the code with start, restart, or stop to start, restart, or stop SSH service.

ssh-status

To config the SSH server, e.g., listening port, root access, run command:

xhost +local: && sudo gedit /etc/ssh/sshd_config

Use nano instead gedit in Ubuntu server. And skip xhost +local: for non wayland session.

config-ssh

And remember to restart SSH service to apply changes:

sudo service ssh restart

For more, read the official OpenSSH manual.

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.