SSH tutorials
Step-by-step SSH tutorials: generate keys, turn off password login, open dashboards through SSH tunnels, copy files with rsync and scp, and run Fail2ban.
11 tutorials
- 12 min read
How to Generate an SSH Key on Windows, macOS, and Linux
Generate SSH keys with ssh-keygen on Windows 11, macOS, or Linux, or with PuTTYgen, then copy the public key to a server and log in with it in 7 steps.
Read tutorial - 15 min read
How to Fix SSH Connection Refused on a Linux Server
Fix SSH connection refused on a Linux server and get back in: check that SSH is running, that your firewall lets it through and that you are not banned.
Read tutorial - 13 min read
How to Upgrade Ubuntu 24.04 to 26.04 LTS on a VPS
Upgrade Ubuntu 24.04 to 26.04 LTS over SSH in 10 steps: back up, install updates, open the port 1022 fallback, run do-release-upgrade, then verify services.
Read tutorial - 18 min read
How to Upgrade Debian 12 to 13 Trixie Without Losing SSH Access
Upgrade Debian 12 to 13 Trixie on a server over SSH: back up first, carry PHP and PostgreSQL across, and keep the server reachable after the reboot.
Read tutorial - 15 min read
How to Open a Private Dashboard with an SSH Tunnel (Port Forwarding)
Open a dashboard bound to 127.0.0.1 on your server through an SSH tunnel from Windows, macOS, or Linux, save it in ~/.ssh/config, and keep it alive in 6 steps.
Read tutorial - 15 min read
How to Copy Files to a VPS with rsync and scp (Windows, Mac and Linux)
Copy files to a VPS from Windows, Mac or Linux with rsync and scp in 9 steps: dry runs, excludes, resumed copies and a database move, plus a nightly cron job.
Read tutorial - 17 min read
How to Set Up a UFW Firewall on Ubuntu 26.04
Turn on the UFW firewall on your Ubuntu 26.04 server without locking yourself out, allow only the services you run and stop Docker apps from slipping past it.
Read tutorial - 14 min read
How to Install and Configure Fail2ban on Ubuntu 24.04 and 26.04
Install Fail2ban on Ubuntu 24.04 or 26.04 and protect SSH in 7 steps: journal backend, UFW bans, incremental ban times, the recidive jail, and unban commands.
Read tutorial - 14 min read
How to Install Codex CLI on a Linux Server (Ubuntu 24.04)
Install Codex CLI on a Linux server (Ubuntu 24.04) in 10 steps: a non-root user, the bubblewrap sandbox, device code or API key login, tmux and codex exec.
Read tutorial - 14 min read
How to Run Claude Code on an Ubuntu 24.04 VPS with tmux
Run Claude Code on an Ubuntu 24.04 VPS in 9 steps: native install as a non-root user, headless login, a tmux session, and Remote Control from your phone.
Read tutorial - 15 min read
How to Set Up Remote Desktop on an Ubuntu 26.04 Server
Set up remote desktop on an Ubuntu 26.04 server, connect to a full desktop from Windows, Mac or Linux, avoid the black screen and keep the session private.
Read tutorial