Ubuntu 18.04: Install openssh-server for SSH server

This article will describe installing openssh-server.

Table of Contents

1 Install openssh-server

Install openssh-server. If you use ufw, open 22/tcp.

$ sudo apt install -y openssh-server
$ sudo systemctl enable ssh
$ sudo systemctl restart ssh