To enable the SSH on the Ubuntu 22.04, we have to install the openssh-server whose package is by default comes in the repository of the Ubuntu 22.04:
When the installation of the openssh-server is completed, we will use the systemctl command to check its status:
The SSH service is in the running state, now we will allow the connection on the SSH port by using the ufw command:
To save the changes of ufw, we will enable and reload the ufw:
To connect any other system through the SSH, first make sure both machines have SSH server installed and enabled. Secondly, you should know the IP address and user name of the machine you want to connect, for example, in our case, the IP address of the machine to which we want to connect is 192.168.1.12 and the hostname is “linuxhint”, we will execute the command:
For the first time connection, it will confirm you to process, so type “y” and press the ENTER key, and then it will ask for the password:
After providing the correct password, our system is connected to the new machine:
We can list down the contents of the connected system in order to verify:
To close the connection with the system connected through SSH, we will run the exit command:
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.
The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…
Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…
Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…
Focal Fossa will reach the End of Standard Support in May 2025, also known as…
Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…
Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…