Table of contents

Enable SSH on Ubuntu desktop 20.04

Linux Dec 20, 2021 Viewed 5 Comments 0


After installing the desktop version of Ubuntu 20.04 on my computer, I found that computers on the LAN cannot connect it via ssh.

$ ssh test@
ssh: connect to host port 22: Connection refused


The SSH server is not installed by default on Ubuntu desktop systems but it can easily install openssh-server by running apt.

sudo apt update
sudo apt install openssh-server

Run again after successful installation.

$ ssh test@                                                                 
cpm@'s password: 
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-27-generic x86_64)

 * Documentation:
 * Management:
 * Support:

182 updates can be applied immediately.
107 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Mon Dec 13 21:56:52 2021 from​
Updated Dec 20, 2021