← All Kali Issues
SSH

Connection refused port 22

N Network High

🔴 Error Message

ssh: connect to host: Connection refused

📖 What This Means

SSH server not running or port blocked.

🔧 Step-by-Step Fix

  1. Start SSH: sudo systemctl start ssh
  2. Enable: sudo systemctl enable ssh
  3. Check port: sudo ss -tlnp | grep 22
  4. Generate keys: sudo ssh-keygen -A