This guide will help you enable SSH on Ubuntu 22.04. SSH is what you will need to access the server using a remote terminal.
SSH stands for Secure Shell. It is a network protocol that provides a secure and encrypted method for remote login and command execution on a computer over an unsecured network. SSH is widely used in the field of system administration and allows users to securely access and manage remote systems.
SSH uses cryptographic techniques to establish a secure connection between the client and the server, ensuring that the data transmitted over the network remains private and protected from unauthorized access. It provides secure authentication of the client to the server, preventing malicious users from impersonating legitimate users.
The primary use of SSH is for remote shell access, allowing users to log into a remote system and execute commands as if they were directly interacting with the local shell. It also supports secure file transfer (SFTP) and port forwarding, allowing users to securely transfer files and redirect network traffic through an encrypted tunnel.
SSH operates on TCP port 22 by default, and it is supported by various operating systems and platforms. It is a standard tool for remote administration, secure file transfers, and secure communication between networked systems.
By enabling SSH, you will also be able to securely transfer files via scp and sftp protocols.
Enable SSH on Ubuntu
By default, when Ubuntu is first installed, remote access via SSH is not allowed therefore we will need to get it working.
Apply the following steps as root or user with sudo privileges to install and enable SSH on your Ubuntu system:
In the Ubuntu terminal, install the openssh-server package:
$ sudo apt update
$ sudo apt install openssh-server
Once the installation is complete, the SSH service will start automatically. You can verify that SSH is running by typing:
$ sudo systemctl status ssh
Next, ensure ssh is allowed through the firewall. If the firewall is enabled on your system, make sure to open the SSH port using this command:
$ sudo ufw allow ssh
That’s it! You can now connect to your Ubuntu system via SSH from any remote machine. You can connect from a Windows machine to Ubuntu using an SSH client such as PuTTY.
Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.