In this article, we will have explained the necessary steps to enable ssh on Ubuntu 18.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Secure Shell (SSH) is a cryptographic network protocol used for secure connection between a client and a server. Ubuntu Linux provides OpenSSH which is a freely available version of the Secure Shell (SSH) and is OpenBSD Secure Shell in its repositories, which is a suite of security-related network-level utilities based on the SSH protocol.
Enable SSH on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
Step 2. Enable SSH on Ubuntu 18.04.
Enable SSH on your Ubuntu system complete the following steps:
Once the installation is completed, the SSH service will start automatically. To verify that the installation was successful and SSH service is running type the following command which will print the SSH server status:
If for some reason you want to disable SSH on your Ubuntu machine you can simply stop the SSH service by running:
To start it again run:
That’s all you need to do to enable ssh on Ubuntu 18.04. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.