Linux VPS
SSH, packages, services and everyday Linux administration.
Convert keys between PuTTY (.ppk) and OpenSSH formats
Use PuTTYgen to convert a PuTTY .ppk private key to OpenSSH format and back, understand PPK version 2 and 3, generate a new Ed25519 key and load it in PuTTY.
- Intermediate
- Linux VPS
- 5 min read
Deploy a Node.js app with PM2 behind Nginx
Install a Node.js LTS release, keep your app running with PM2 across crashes and reboots, and serve it through Nginx with HTTPS.
- Intermediate
- Linux VPS
- 3 min read
Create an SFTP-only user limited to one folder
Give someone file access over SFTP without a shell, locked inside one folder. Configure internal-sftp with a Match block, set the chroot ownership right and test with WinSCP.
- Advanced
- Linux VPS
- 5 min read
Add a new user on Linux (adduser vs useradd)
Create a new user account on your Linux VPS with adduser on Ubuntu and Debian or useradd on AlmaLinux and Rocky Linux, with a password, home folder and the right shell.
- Beginner
- Linux VPS
- 5 min read
See who is logged in and what they are doing (w, who, last)
Check who is logged in to your Linux VPS right now, what they are running, when each user last logged in and which logins failed, then end a session if needed.
- Beginner
- Linux VPS
- 4 min read
Install Nginx and host your first website
Install Nginx, open ports 80 and 443, create a server block for your domain, and learn the test-then-reload routine that keeps a site online.
- Beginner
- Linux VPS
- 2 min read
Find the largest files and folders on a Linux server
Track down what is filling your Linux VPS disk with du, sort, find -size and ncdu, staying on one filesystem so the search is fast and the results make sense.
- Beginner
- Linux VPS
- 4 min read
Fine-grained permissions with ACLs (setfacl and getfacl)
Give extra users or groups access to a file or folder without changing its owner, using POSIX ACLs with setfacl and getfacl, including default ACLs for new files.
- Advanced
- Linux VPS
- 4 min read
Customise the login message (MOTD) on Ubuntu and Debian
Change the message you see when you log in over SSH. Edit /etc/motd, trim or add update-motd.d scripts, switch off Ubuntu news and show disk and load at a glance.
- Intermediate
- Linux VPS
- 5 min read
Linux file permissions explained (rwx, owner, group, others)
Learn to read ls -l output, what read, write and execute mean for files and folders, how owner, group and others work, and which numeric values like 644 and 755 to use.
- Beginner
- Linux VPS
- 5 min read
chown: change file owner and group in Linux
Use chown and chgrp to change who owns files on your Linux server, fix web root ownership after an upload, work recursively and understand how symbolic links are handled.
- Beginner
- Linux VPS
- 5 min read
Monitor CPU, memory, disk and logs on a Linux server
A practical toolkit for checking load, CPU, memory, disk, network and logs on a Linux VPS, with what each number means and when it is a problem.
- Beginner
- Linux VPS
- 3 min read
The find command: search for files in Linux
Search your Linux server for files by name, type, size, age, owner or permissions with find, act on the results with -exec or -delete, and skip folders you do not need.
- Beginner
- Linux VPS
- 4 min read
Back up your Linux VPS with rsync, restic and cron
Decide what to back up, dump your databases, copy files off the server with rsync or encrypted restic snapshots, schedule it with cron and prove restores work.
- Intermediate
- Linux VPS
- 3 min read
Secure Nginx with a free Let's Encrypt SSL certificate
Install Certbot, issue a free certificate for your domain, redirect HTTP to HTTPS and make sure renewal runs on its own.
- Beginner
- Linux VPS
- 2 min read
Install and secure MariaDB or MySQL, and allow remote access safely
Install MariaDB (or MySQL), lock it down, create a least-privilege app user, and connect remotely the safe way: an SSH tunnel or a single allowed IP.
- Intermediate
- Linux VPS
- 3 min read
Use the SSH config file to save hosts and shortcuts
Save every server's address, user, port and key in ~/.ssh/config so you can connect with a short name, share settings with wildcards and avoid key errors with IdentitiesOnly, on Windows, macOS and Linux.
- Intermediate
- Linux VPS
- 4 min read
Make files immutable with chattr and lsattr
Protect important files from being changed or deleted, even by root, with the chattr immutable and append-only flags, and learn to spot and remove them with lsattr.
- Intermediate
- Linux VPS
- 4 min read
Create system users for apps and services
Run each app on your Linux VPS under its own system account with no password and no shell, so a bug or breach in one app cannot take over the whole server.
- Intermediate
- Linux VPS
- 4 min read
Create a shared folder several users can edit
Set up a folder on your Linux VPS that a team can all read and edit, using a shared group, the setgid bit, a 002 umask or default ACLs, and test it with two users.
- Intermediate
- Linux VPS
- 4 min read
Allow sudo without a password (NOPASSWD) for one user or command
Let a deploy script or one trusted user run sudo without typing a password, using a NOPASSWD rule in /etc/sudoers.d, ideally limited to the exact commands needed.
- Intermediate
- Linux VPS
- 5 min read
Install PostgreSQL and create your first database
Install PostgreSQL, create a role and database for your app, enable password logins, connect remotely without exposing the port, and take backups with pg_dump.
- Intermediate
- Linux VPS
- 3 min read
chmod: change file permissions in Linux (with examples)
Use chmod to change who can read, write and run files on your Linux server, with numeric and symbolic modes, recursive changes, and a quick way to check the result.
- Beginner
- Linux VPS
- 4 min read
Delete files older than X days automatically
Clean up old backups, logs and temp files on a schedule. Find files older than a set number of days, test with a dry run, delete them and automate it with cron, a systemd timer or tmpfiles.d.
- Intermediate
- Linux VPS
- 4 min read
List users and groups on a Linux server
See every account on your Linux VPS, tell real people apart from system accounts by UID, and list groups and their members with getent, compgen and id.
- Beginner
- Linux VPS
- 4 min read
Schedule tasks with cron on Linux
Write crontab entries with confidence: the five time fields, working examples, logging output, avoiding overlapping runs and checking that jobs actually ran.
- Beginner
- Linux VPS
- 3 min read
Find recently changed files in Linux
List files changed in the last minutes, hours or days with find -mmin and -mtime, compare against a reference file, and read atime, mtime and ctime with stat.
- Intermediate
- Linux VPS
- 4 min read
Manage several SSH keys for different servers
Keep separate SSH keys for different servers, clients or devices, tell SSH which key to use per host with IdentityFile and IdentitiesOnly, name keys clearly, rotate them and remove old keys from authorized_keys.
- Intermediate
- Linux VPS
- 5 min read
Delete a user and their files on Linux
Remove a Linux user account cleanly. Stop their processes, back up what matters, delete the account with userdel or deluser and find any files they left behind.
- Beginner
- Linux VPS
- 5 min read
Install Docker and Docker Compose on a Linux VPS
Install Docker Engine and the Compose plugin from Docker's own repository, run a first Compose project, cap log size and avoid exposing ports by accident.
- Intermediate
- Linux VPS
- 3 min read
Other topics
- Getting startedYour first hour with a new server: access, logins and basics.66 guides
- Linux VPSSSH, packages, services and everyday Linux administration.41 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.53 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.86 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.15 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.101 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.44 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.56 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.55 guides
- Billing & accountInvoices, renewals, the client area and your account.7 guides
- TroubleshootingWhen something is not working: checks and fixes.43 guides