SSH Connection in Linux

January 11, 2026

1️⃣ Setup SSH service

Install OpenSSH server

sudo apt update
sudo apt install -y openssh-server

Enable and start the SSH service

sudo systemctl enable ssh
sudo systemctl start ssh

Check status:

systemctl status ssh

2️⃣ Allow SSH through the firewall (if enabled)

Ubuntu Server often has ufw disabled by default, but check:

sudo ufw status

If it’s active:

sudo ufw allow ssh
sudo ufw reload

3️⃣ Connect from Windows

From PowerShell on Windows:

ssh username@<ubuntu-ip>

Example:

ssh nob@192.168.1.50