How to Enable SSH on Ubuntu 22.04?
Jul 14, 2022 . Admin
This simple article demonstrates of How to Enable SSH on Ubuntu 22.04?. I would like to share with you Get Enable SSH on Ubuntu 22.04. if you have question about SSH is Available and Enable on Ubuntu 22.04 then I will give simple example with solution. you will learn Do I Disable SSH From Ubuntu 22.04?.
You can use this post for ubuntu 14.04, ubuntu 16.04, ubuntu 18.4, ubuntu 20.04, ubuntu 21 and ubuntu 22.04 versions.
(1). Update Dependencies
(2). Install Openssh
(3). Check Status of SSH
(4). Allow Connection
(5). Connect to SSH ServerStep 1: Update Dependencies
Execute the following command on the command prompt to update dependencies:
sudo apt updateStep 2: Install Openssh
Following the commands to install the OpenSSH server on system:
sudo apt install openssh-serverStep 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 sshStep 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 reloadStep 5: Connect to SSH Server
Execute the following command with username and ip addres to connect ssh server: