How To Enable SSH on Ubuntu 22.04

How To Enable SSH on Ubuntu 22.04

Enable ssh on ubuntu 22.04; Through this tutorial, we will learn how to enable ssh and use ssh on ubuntu 22.04 using command line or terminal.

SSH is a communication protocol to communicate between two different machines, one is the client and the other is the host. In this write-up, we have installed the OpenSSH server in Ubuntu 22.04 and used it to connect to a remote machine.

How to Enable and Use SSH on Ubuntu 22.04

Follow the below given steps to enable and use ssh on ubuntu 22.04:

  • Step 1 – Update Dependencies
  • Step 2 – Install Openssh
  • Step 3 – Check Status of SSH
  • Step 4 – Allow Connection
  • Step 5 – Connect to SSH Server

Step 1 – Update Dependencies

Execute the following command on the command prompt to update dependencies:

sudo apt update 

Step 2 – Install Openssh

Execute the following commands to install the OpenSSH server on system:

sudo apt install openssh-server 

Step 3 – Check Status of SSH

Once the packages installation has been finished, execute the following command on command prompt to check SSH service status:

sudo systemctl status ssh 

Step 4 – Allow Connection

Execute the following command on command prompt to allow SSH for remote users; is as follows:

sudo ufw allow ssh
sudo ufw enable && sudo ufw reload

Step 5 – Connect to SSH Server

Execute the following command with username and ip addres to connect ssh server:

ssh [email protected]_host 

Conclusion

Through this tutorial, we have learned how to install, connect and enable ssh on ubuntu 22.04 system.

Recommended Linux Ubuntu Tutorials

AuthorAdmin

My name is Devendra Dode. I am a full-stack developer, entrepreneur, and owner of Tutsmake.com. I like writing tutorials and tips that can help other developers. I share tutorials of PHP, Python, Javascript, JQuery, Laravel, Livewire, Codeigniter, Node JS, Express JS, Vue JS, Angular JS, React Js, MySQL, MongoDB, REST APIs, Windows, Xampp, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL and Bootstrap from a starting stage. As well as demo example.

Leave a Reply

Your email address will not be published. Required fields are marked *