How to Install SSH Server on Ubuntu

Check if it’s installed

Run:

dpkg -l | grep openssh-server

If it’s installed, you’ll see a line like:

ii  openssh-server   1:8.9p1-3ubuntu0.6   amd64   secure shell (SSH) server, for secure access from remote machines

To install it (if missing):

sudo apt update
sudo apt install openssh-server

Check if the SSH service is running

systemctl status ssh

If it’s running, you’ll see:

Active: active (running)

If it’s not running or says “inactive” or “not found”, you can start and enable it:

sudo systemctl enable --now ssh

Test from another machine (once installed and running)

ssh your_username@192.168.0.61

Leave a Reply

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