How to SSH into Ubuntu Desktop
Turn your old laptop or PC into a Linux server: install OpenSSH on Ubuntu Desktop, create a key pair, copy it over and connect over SSH.

I wrote this post in Spanish in 2022 and adapted it to English in 2026.
This short tutorial will help you turn your old laptop or PC into your new Linux server, where you can run Docker with your different apps.
On the Desktop #
Install openssh-server:
$ sudo apt install openssh-server
Allow SSH connections:
$ sudo ufw allow ssh
With that, everything is ready on the machine we're going to connect to.
On Your Device #
Create a public/private key pair:
$ ssh-keygen -b 4096
Give the key a name and a passphrase. You can just press Enter if you don't want an extra passphrase.
Now it's time to copy the public key to the machine you want to connect to:
$ ssh-copy-id -i ~/.ssh/your-key.pub user@machine-ip
Remember to replace:
your-key: with the name of the key you createduser: with the user you log in to the PC withmachine-ip: with your device's IP address
To get your device's IP address:
$ ip a
Now, with the key copied, all that's left is to connect over SSH:
$ ssh user@machine-ip


