All tags
Start here · securityKeep a domain pointed at your home with Cloudflare DDNS on Unraid13 steps · 8 min read · Unraid owners with a domain on Cloudflare and a changing home IP addressStart the guide security
Narrow down
Guides7
- GuideKeep a domain pointed at your home with Cloudflare DDNS on UnraidSet up favonia/cloudflare-ddns on Unraid: a limited API token kept in a file, a hardened container, and a DNS record that follows your home IP.13 steps · 8 min read
- GuidePut your VPS and its websites on your home network with Tailscale, and close everything except 80 and 443Put a VPS on your tailnet, move SSH and admin panels onto Tailscale, and leave only ports 80 and 443 open so the websites stay public and everything else is private.6 steps · 8 min read
- GuideStop every device on your tailnet from reaching every container, with a tag, one grant and a testNarrow a new tailnet where every device reaches every container: tag the containers, write one grant for the port you use, and let Tailscale test the policy first.6 steps · 5 min read
- GuideBack up your Unraid appdata with Duplicati, encrypted, to a European provider, and prove it with a test restoreBack up your Unraid appdata with Duplicati, encrypted on your side, to a provider in Europe, and prove the backup works with a test restore.9 steps · 6 min read
- GuideManage your Unraid server from anywhere with Tailscale and no open portsManage your Unraid server from anywhere with Tailscale and key-only SSH, then delete the port forwards on your router, with no open ports.10 steps · 8 min read
- GuideFix your WordPress file permissions without breaking the siteCheck and fix your WordPress file permissions (755 for directories, 644 for files, a tighter wp-config.php) without locking yourself out.6 steps · 5 min read
- Guide🛜 Guide: AdGuard Home + Tailscale (Secure Split-Horizon DNS)Build a split-horizon DNS with AdGuard Home, Tailscale and Cloudflare Tunnels on Unraid 7: fast at home in Leiden, filtered and secure on 4G, with no open ports.10 steps · 4 min read
Shell134
- Tip
sudo certbot --nginx -d example.com -d www.example.comCertbot --nginx gets a certificate and wires it into your server blockGet a Let's Encrypt certificate and enable it in nginx with one command3 Dec 2026 - Tip
printf 'hunter2' | sudo systemd-creds encrypt --name=dbpass - dbpass.credsystemd-creds encrypt keeps a service secret encrypted on diskEncrypts a secret into a file that only systemd can decrypt for a named credential.3 Dec 2026 - Tip
Match User tunnelSshd PermitOpen limits where a user can forward ports toRestricts SSH port forwarding to a short list of host:port destinations for a user.3 Dec 2026 - Tip
sudo snap stop --disable lxd.daemonSnap can stop a service and keep it from coming back after bootTurn off a background service while the app itself stays installed.1 Dec 2026 - Tip
restrict,command="/usr/local/bin/backup.sh" ssh-ed25519 AAAAC3Nza... backup@exampleCommand= in authorized_keys locks an SSH key to one jobGive a backup or deploy key exactly one thing it may do on the server.30 Nov 2026 - Tip
PerSourcePenalties authfail:30s max:30mPerSourcePenalties is the fail2ban that newer sshd already has built inKnow how OpenSSH 9.8 and later block noisy addresses by themselves, and how to tune it.30 Nov 2026 - Tip
sudo ufw show listeningUfw show listening matches open ports to the rules that cover themLists listening ports with their program and the ufw rule that applies.30 Nov 2026 - Tip
sudoedit /etc/ssh/sshd_configsudoedit edits a root-owned file with your own editor settings, not as rootEdit system files safely without running a whole editor as root.30 Nov 2026 - Tip
sudo journalctl --setup-keysJournalctl setup-keys seals your logs so tampering shows upMake later changes to stored journal files detectable with a key you keep elsewhere.30 Nov 2026 - Tip
sudo usermod --expiredate 1 bobUsermod -e 1 shuts an account out, SSH keys included, a real security lockDisables an account completely, so key logins stop too, without deleting anything.30 Nov 2026 - Tip
curl -sv -o /dev/null --tlsv1.2 --tls-max 1.2 https://example.com/ 2>&1 | grep 'SSL connection'curl tls-max shows whether a server still accepts TLS 1.2Force a TLS version range to see which versions a server accepts.30 Nov 2026 - Tip
sed 's/^#auth/auth/' /etc/pam.d/sudo_local.template | sudo tee /etc/pam.d/sudo_localSudo_local lets you approve sudo in the Mac terminal with Touch IDUses your fingerprint for sudo, in a way that survives macOS updates.30 Nov 2026 - Tip
ww is the first security check when a server feels offShows who is logged in right now, from where, and what they are running.30 Nov 2026 - Tip
xattr -d com.apple.quarantine ./toolxattr -d com.apple.quarantine clears the download flag on a file in the terminalRemoves the quarantine mark that makes Gatekeeper block a downloaded tool.30 Nov 2026 - Tip
sudo systemctl edit myapp.serviceProtectHome=yes keeps a systemd service out of every home folder, a security one-linerMakes /home, /root and /run/user empty and unreachable for one service.30 Nov 2026 - Tip
ssh-keygen -Y sign -f ~/.ssh/id_ed25519 -n file release.tar.gzssh-keygen -Y sign lets your SSH key sign any fileSign and verify files with the SSH key you already have, without setting up GPG.30 Nov 2026 - Tip
echo "$TOKEN" | jq -R 'split(".")[1] | gsub("-";"+") | gsub("_";"/") | @base64d | fromjson'Jq @base64d reads the payload of a JWT in the terminalDecode the middle part of a JWT to see its claims and expiry time.30 Nov 2026 - Tip
sudo apt install aideAIDE takes a fingerprint of your system files so a security check shows what changedBuilds a database of file checksums and later reports every file that changed.30 Nov 2026 - Tip
printf 'admin:%s\n' "$(openssl passwd -apr1)" | sudo tee -a /etc/nginx/htpasswdOpenssl passwd makes an nginx password file without apache2-utilsCreates an htpasswd line with openssl and puts a password on one nginx location.30 Nov 2026 - Tip
sudo tailscale up --force-reauthDisable key expiry for a Tailscale server so it never drops offStop a headless server from losing its Tailscale connection when its node key expires.30 Nov 2026 - Tip
ufw --force enableufw enable with the force flag skips the SSH question, so put it last in a scriptEnables the firewall without the interactive question, for setup scripts.30 Nov 2026 - Tip
ForceCommand internal-sftpForceCommand internal-sftp with ChrootDirectory makes an SFTP-only SSH accountGive someone file upload access in one folder without a shell on the server.30 Nov 2026 - Tip
sysctl -a 2>/dev/null | grep -E 'accept_redirects|send_redirects'Turn off ICMP redirects on a server, a sysctl security setting most hosts never needStops the server from changing its routes because of ICMP redirect messages.30 Nov 2026 - Tip
sudo tailscale up --auth-key=file:/root/ts-authkeyA file: auth key keeps your Tailscale key out of shell historyPass a Tailscale auth key from a protected file instead of typing it on the command line.30 Nov 2026 - Tip
sudo mount -o remount,hidepid=2 /procMount /proc with hidepid=2 so users only see their own processes, a security gainHides other users' processes and their command lines from normal accounts.30 Nov 2026 - Tip
sudo apt install libpam-pwqualityPwquality.conf sets the password rules for passwd, a security baseline in one fileMakes passwd refuse short or dictionary passwords for local accounts.30 Nov 2026 - Tip
sudo install -d -m 0755 /etc/apt/keyringsSigned-By ties an apt repository to its own key instead of trusting it for everythingLimits a third party key so it can only sign its own repository.30 Nov 2026 - Tip
awk -F: '($3 == 0) {print $1}' /etc/passwdOne awk line finds every account with UID 0, a security check worth a cron jobLists every account in /etc/passwd that has root's user ID.30 Nov 2026 - Tip
ChannelTimeout session=30m direct-tcpip=1hChannelTimeout makes sshd close SSH sessions that sit idleLog out forgotten shells and stale tunnels after a set time of inactivity.30 Nov 2026 - Tip
sudo systemctl edit myapp.serviceIPAddressDeny=any gives one systemd service its own firewall, a security layerLimits which IP addresses a single service may talk to, in both directions.30 Nov 2026 - Tip
ssh-keygen -s user_ca -I alice-laptop -n alice -V +52w id_ed25519.pubssh-keygen -s signs SSH user certificates so servers trust one CASign user keys with a CA so servers stop needing every public key in authorized_keys.30 Nov 2026 - Tip
sudo ssh-keygen -Assh-keygen -A gives a cloned VM its own SSH host keysRegenerate missing host keys so cloned machines stop sharing one server identity.30 Nov 2026 - Tip
NoNewPrivileges=yesNoNewPrivileges=yes stops a systemd service from gaining root through setuidMake sure a service and its children can never gain more rights through sudo or setuid binaries.30 Nov 2026 - Tip
PrivateTmp=yesPrivateTmp=yes gives a systemd service its own empty /tmpKeep a service's temporary files away from other users and programs.30 Nov 2026 - Tip
sudo pwck -rPwck -r checks passwd and shadow for broken entries, a read-only security checkChecks the account files for broken lines without changing a thing.30 Nov 2026 - Tip
PrivateDevices=yesPrivateDevices=yes hides your disks from a systemd serviceGive a service a minimal /dev without disks, so a bug can not read raw devices.30 Nov 2026 - Tip
sudo visudo -f /etc/sudoers.d/iologSudoreplay plays back sudo sessions recorded with log_output, a security review toolRecords the terminal output of sudo sessions so you can replay them later.30 Nov 2026 - Tip
DisableForwarding yesDisableForwarding yes switches off every kind of SSH tunnel in one lineStop users from using your SSH server as a tunnel or proxy into your network.30 Nov 2026 - Tip
Match Address 192.0.2.0/24A Match Address block in sshd_config allows passwords only from your LANUse different SSH server rules for logins from your own network and from outside.30 Nov 2026 - Tip
[Service]SystemCallFilter= blocks whole groups of system calls in a systemd serviceForbid a service from calling things like mount or reboot at the kernel level.30 Nov 2026 - Tip
sudo passwd -S -aPasswd -S -a shows the password state of every account, a quick security overviewPrints for each account whether its password is set, locked or empty.30 Nov 2026 - Tip
Terminal (menu bar) > Secure Keyboard EntrySecure Keyboard Entry stops other apps from reading what you type in TerminalProtects passwords and keys you type in Terminal from keyloggers and snooping apps.30 Nov 2026 - Tip
echo 'readonly TMOUT=900; export TMOUT' | sudo tee /etc/profile.d/tmout.shTMOUT logs out an idle shell, a simple security setting for shared serversEnds an interactive bash session after a set time without input.30 Nov 2026 - Tip
ssh -Q cipherssh -Q lists the algorithms your SSH client supportsSee which ciphers, key types and key exchanges your own ssh build can use.30 Nov 2026 - Tip
curl -s -o /dev/null -w '%{num_certs}\n%{certs}' https://example.com/ | grep -E '^[0-9]|Subject:|Issuer:|Expire'curl -w with certs prints the whole certificate chain a server sendsSee every certificate in the chain, with subject, issuer and dates, from one curl command.30 Nov 2026 - Tip
expiry-time="20270131" ssh-ed25519 AAAAC3Nza... guest@exampleexpiry-time in authorized_keys makes an SSH key stop working on a dateGive a temporary key a built-in end date so nobody has to remember to remove it.30 Nov 2026 - Tip
sudo aa-complain /usr/sbin/nginxaa-complain lets an AppArmor profile log instead of block while you test security rulesSwitches one AppArmor profile to logging mode, so you can see what it would block.30 Nov 2026 - Tip
sudo apt install needrestartNeedrestart tells you which services still run old libraries after an upgradeLists services that still use outdated libraries after package upgrades.28 Nov 2026 - Tip
sudo -ksudo -k forgets your cached sudo password right awayClears sudo's cached password so the next command asks for it again.28 Nov 2026 - Tip
ssh -D 127.0.0.1:1080 [email protected]ssh -D 1080 turns an SSH connection into a SOCKS proxyStarts a local SOCKS proxy that sends your browser traffic through an SSH server.28 Nov 2026 - Tip
AddKeysToAgent yesAddKeysToAgent yes loads your key into the agent on first useMakes ssh add your private key to the agent the first time it is used.28 Nov 2026 - Tip
ssh-keygen -F example.comssh-keygen -F finds a host in known_hostsSearches known_hosts for one host name and prints the entries it finds.28 Nov 2026 - Tip
ssh-keygen -t ed25519-sk -C "laptop-key"ssh-keygen -t ed25519-sk ties an SSH key to a hardware security keyCreates an SSH key that needs your hardware security key to be used.28 Nov 2026 - Tip
shred -v -u -z ~/Documents/old-secret.txtshred overwrites a file before deleting it, but the manual has a warningOverwrites a file before deleting it, plus the manual's warning about copies and file systems.28 Nov 2026 - Tip
ssh-add -t 1h ~/.ssh/id_ed25519ssh-add -t makes an SSH key vanish from the agent after a set timeLoads an SSH key into the agent for a limited time only.28 Nov 2026 - Tip
Start-Process -FilePath "powershell" -Verb RunAsStart-Process -Verb RunAs opens an elevated program from PowerShellStarts one program with administrator rights from a normal PowerShell window.28 Nov 2026 - Tip
sudo faillock --user aliceFaillock shows failed logins and clears a locked accountShows the failed logins of a user and clears the records that lock the account.28 Nov 2026 - Tip
sudo visudo -c && echo sudoers okVisudo -c checks your sudoers files for syntax errorsChecks sudoers and its included files for syntax errors and returns an exit code.28 Nov 2026 - Tip
ssh-keygen -H -f ~/.ssh/known_hostsssh-keygen -H hashes the host names in known_hostsTurns the host names in known_hosts into hashes so the file no longer lists your servers.28 Nov 2026 - Tip
ssh-keygen -t ed25519 -a 100 -C "laptop"ssh-keygen -a sets how many rounds protect your key passphraseRaises the number of key derivation rounds so a stolen SSH key file is harder to brute-force.28 Nov 2026 - Tip
MaxAuthTries 3MaxAuthTries limits password guesses per SSH connectionLowers how many authentication attempts sshd allows per connection, default 6.28 Nov 2026 - Tip
MaxStartups 5:50:20MaxStartups limits unauthenticated SSH connectionsCaps unauthenticated SSH connections and shortens the login window to blunt connection floods.28 Nov 2026 - Tip
PermitRootLogin noPermitRootLogin has four values, and the default is not yesShows the four PermitRootLogin values and how to see the one your server really uses.28 Nov 2026 - Tip
curl -s "https://api.pwnedpasswords.com/range/${H:0:5}" | grep -i "${H:5:35}"Check a password against Pwned Passwords with curl and five hash charactersChecks whether a password is in known breaches by sending only 5 characters of its SHA-1 hash.28 Nov 2026 - Tip
sudo aa-statusaa-status shows which processes AppArmor confinesLists the loaded AppArmor profiles, their modes and how many running processes are confined.28 Nov 2026 - Tip
sudo cryptsetup luksHeaderBackup /dev/sdb1 --header-backup-file /root/sdb1-header.imgCryptsetup luksHeaderBackup saves the one part of a LUKS disk you cannot rebuildSaves the LUKS header and keyslots to a file, so a damaged header does not mean lost data.28 Nov 2026 - Tip
sudo usermod -s /usr/sbin/nologin svc-backupGive service accounts the nologin shell so nobody can log in as themSets an account shell to nologin so that service users refuse interactive logins.28 Nov 2026 - Tip
IdentitiesOnly yesIdentitiesOnly yes makes ssh use only the key you configuredStops ssh from offering every key in the agent and sends only the identity file you named.28 Nov 2026 - Tip
ssh -o StrictHostKeyChecking=accept-new [email protected] uptimeStrictHostKeyChecking accept-new trusts a new server once and refuses it when its key changesLets ssh add the key of a new server without asking, but still refuses a server whose key changed.28 Nov 2026 - Tip
ssh -o VisualHostKey=yes [email protected]VisualHostKey yes draws the host key fingerprint as ASCII artPrints the server host key fingerprint as ASCII art so you can compare it by shape.28 Nov 2026 - Tip
Host *UpdateHostKeys lets a server add its other host keys to your known_hostsLets a trusted SSH server hand you its additional host keys so known_hosts stays current.28 Nov 2026 - Tip
claude --tools "Read,Grep"claude --tools restricts which built-in tools Claude can useLimits Claude Code to the built-in tools you list, such as read-only ones.28 Nov 2026 - Tip
ssh-add --apple-use-keychain ~/.ssh/id_ed25519ssh-add --apple-use-keychain stores your SSH key passphrase in the macOS keychainSaves an SSH key passphrase in the macOS keychain, so it is not asked again.28 Nov 2026 - Tip
sudo fdesetup changerecovery -personalFdesetup changerecovery -personal makes a new FileVault recovery keyReplaces your FileVault recovery key with a new one when the old key may be exposed.28 Nov 2026 - Tip
System Settings > General > Sharing > Remote LoginTurn on Remote Login to SSH into your MacLets you log in to your Mac over SSH or SFTP from another computer.28 Nov 2026 - Tip
spctl --assess --verbose /Applications/SomeApp.appspctl --assess asks Gatekeeper about an app before you open itAsks Gatekeeper whether an app or installer would be allowed, without opening it.28 Nov 2026 - Tip
tccutil reset Camera com.example.apptccutil reset makes an app ask again for camera or microphone accessClears an app's saved privacy permission so macOS asks you again next time.28 Nov 2026 - Tip
codesign -dv --verbose=4 /Applications/SomeApp.appcodesign -dv shows who signed an app on your MacShows the developer and certificate chain behind an app's code signature.28 Nov 2026 - Tip
sudo ufw reject 8080/tcpUfw reject answers right away, where deny lets the other side waitRefuses a connection with an immediate reply instead of silently dropping it.27 Nov 2026 - Tip
sudo ufw resetUfw reset starts the firewall over and keeps a backup of your old rulesWipes all firewall rules back to the defaults and saves the old rule files first.27 Nov 2026 - Tip
sudo systemctl edit myapp.serviceLoadCredential= hands a secret to a systemd service without an environment variableGives a service a password as a private read-only file instead of an environment variable.27 Nov 2026 - Tip
printf 'root\nbackup\n' | sudo tee /etc/cron.allow/etc/cron.allow decides which users may use crontab at allLimits which user accounts are allowed to create and edit their own cron jobs.27 Nov 2026 - Tip
grep -E '^(HOME_MODE|UMASK)' /etc/login.defsHOME_MODE and DIR_MODE decide the permissions of new home foldersSets how private the home folder of every new user account is.27 Nov 2026 - Tip
sudo auditctl -a always,exit -F arch=b64 -F path=/etc/passwd -F perm=wa -k passwd-changeAn auditd rule logs who changed /etc/passwd, even after a sudoLogs every change to an important file together with the user who logged in.27 Nov 2026 - Tip
from="192.168.1.0/24" ssh-ed25519 AAAAC3Nza... laptopFrom= in authorized_keys only accepts a key from addresses you chooseMakes an SSH key work only from the IP addresses or networks you list.27 Nov 2026 - Tip
ssh-keygen -y -f ~/.ssh/id_ed25519ssh-keygen -y rebuilds a lost public key from the private keyPrints the public key that belongs to a private key, so you can restore or match it.27 Nov 2026 - Tip
sudo tailscale set --webclientTailscale set --webclient puts a device's Tailscale settings page on port 5252Opens a device's Tailscale settings in your browser from anywhere on your tailnet, without SSH.27 Nov 2026 - Tip
journalctl --facility=auth,authpriv --since todayjournalctl --facility=auth,authpriv shows only login and security messagesFilters the journal by syslog facility, for example login and privilege messages only.26 Nov 2026 - Tip
sudo rkhunter --check --skRkhunter --check --sk scans a Linux server for rootkit signs in one goRuns a rootkit and suspicious-file scan without stopping to ask for a keypress.26 Nov 2026 - Tip
AllowUsers alice [email protected]/24AllowUsers in sshd_config means only the accounts you name can log in over SSHLimits SSH logins to a short list of user names, optionally from specific addresses.26 Nov 2026 - Tip
sudo debsums -cDebsums -c lists Debian package files that no longer match their checksumsShows which installed package files on Debian or Ubuntu were modified since install.26 Nov 2026 - Tip
pip3 install ssh-auditssh-audit tells you which weak algorithms your SSH server still offersChecks an SSH server's key exchange, ciphers and keys, and lists what to switch off.26 Nov 2026 - Tip
bash /boot/config/scripts/myscript.shScripts on the Unraid boot device need bash in front of themRun your own scripts from the boot device even though it blocks execute permission.25 Nov 2026 - Tip
ssh-keygen -p -f ~/.ssh/id_ed25519ssh-keygen -p changes a key's passphrase without a new keyAdds, changes or removes the passphrase on an existing SSH private key.25 Nov 2026 - Tip
sudo nft list rulesetNft list ruleset shows the active nftables firewall rulesPrints every table, chain and rule that nftables currently has loaded in the kernel.25 Nov 2026 - Tip
sudo passwd -l olduserPasswd -l locks a Linux account password, but SSH keys still workDisables a user's password login on Linux, and what else is needed to really block the account.25 Nov 2026 - Tip
ssh-add -lssh-add -l lists the keys your SSH agent has loadedShows the fingerprints of all keys held by the SSH agent, so you know what can log in for you.25 Nov 2026 - Tip
ssh-keyscan -t ed25519 example.com | ssh-keygen -lf -ssh-keyscan fetches a server's host keys so you can check fingerprintsDownloads the public host keys of a server, so you can inspect their fingerprints before trusting it.25 Nov 2026 - Tip
xattr -l ~/Downloads/app.dmgxattr -l shows the hidden extra data that macOS attaches to a fileLists the extended attributes of a file, including the quarantine flag that macOS sets on downloads.24 Nov 2026 - Tip
sudo lastb | head -n 20Lastb lists failed login attempts on a Linux serverShows the log of bad login attempts that Linux keeps in /var/log/btmp.24 Nov 2026 - Tip
journalctl -t sudo --since todayjournalctl -t sudo lists who ran which command with sudoFilters the journal by program name, for example to review every sudo command.24 Nov 2026 - Tip
[Service]AmbientCapabilities lets a non-root systemd service bind port 80Lets a service running as a normal user listen on ports below 1024 without root.24 Nov 2026 - Tip
DynamicUser=yesDynamicUser=yes gives a systemd service a throwaway user accountRuns a service as an auto-created temporary user and gives it one writable data folder.24 Nov 2026 - Tip
ProtectSystem=strictProtectSystem=strict makes the file system read-only for a systemd serviceMounts the file system read-only for one service and re-opens only the folders it needs.24 Nov 2026 - Tip
sudo ufw show addedUfw show added lets you check your rules before you enable the firewallLists the firewall rules you have added so you can check them before turning ufw on.11 Sep 2026 - Tip
sudo ufw limit sshUfw limit slows down anything hammering your SSH portAllows SSH but blocks any address that opens six or more connections in thirty seconds.27 Aug 2026 - Tip
tailscale set --sshTurn on Tailscale SSH with tailscale set --sshLets you log in over SSH to a machine using your tailnet identity instead of key files.27 Jul 2026 - Tip
nano /boot/config/ssh/root/authorized_keysPut your SSH public key in /boot/config/ssh/root so it survives a rebootKeeps your SSH key login working after Unraid restarts, by storing the key on the flash drive.7 Jun 2026 - Tip
sudo find / -xdev -type f -perm -4000 2>/dev/null | sort > suid-today.txtFind -perm -4000 lists SUID programs, a security audit that takes one lineLists files that run with their owner's privileges so unexpected ones stand out.25 May 2026 - Tip
sudo -lsudo -l shows what a user may run as root, a quick security check of sudoersShows which commands a user may run with sudo and under which conditions.24 May 2026 - Tip
sudo lynis audit systemLynis audit system gives a security report with a hardening score for your serverAudits a Linux host read-only and lists warnings and suggestions with a hardening index.23 May 2026 - Tip
sudo ss -tulpnss -tulpn lists every listening port with its process, the first security auditLists open ports and the programs behind them, the starting point for an exposure review.22 May 2026 - Tip
sudo fail2ban-regex /var/log/auth.log sshdfail2ban-regex tests a jail filter on a real log, a security habitChecks how many log lines a fail2ban filter matches before any ban is created.22 May 2026 - Tip
sudo fail2ban-client status sshdfail2ban-client status sshd shows who is banned, a quick security checkShows the matches and banned addresses of a fail2ban jail, and how to lift a ban.22 May 2026 - Tip
sudo sshd -t && sudo systemctl reload sshA sshd_config.d drop-in turns off password logins, a simple security stepDisables SSH password logins in a separate file that package updates leave alone.21 May 2026 - Tip
ssh-keygen -lf ~/.ssh/authorized_keysssh-keygen -lf audits authorized_keys, a security check for forgotten keysLists the fingerprint and type of every key allowed to log in to an account.21 May 2026 - Tip
sudo sshd -t && sudo systemctl reload sshRun sshd -t before every restart, the cheapest security habit for SSHValidates the sshd configuration first and reloads only when the check succeeds.21 May 2026 - Tip
sudo sshd -T | grep -Ei 'permitrootlogin|passwordauthentication|pubkeyauthentication|allowusers'Sshd -T prints the SSH settings that really apply, a quick security checkPrints the complete effective sshd configuration so you can see what is actually enabled.21 May 2026 - Tip
sudo find / -xdev \( -nouser -o -nogroup \) -ls 2>/dev/nullFind -nouser -o -nogroup lists files whose owner no longer existsLists files that belong to a user or group id nobody uses.20 May 2026 - Tip
sudo find / -xdev -type f -perm -4000 2>/dev/nullFind -perm -4000 lists every setuid program on the systemLists every file that runs with the rights of its owner.20 May 2026 - Tip
sudo getcap -r / 2>/dev/nullGetcap -r / lists the programs that carry extra permissionsLists all files on the system that have file capabilities set.19 May 2026 - Tip
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/myappSetcap lets a program bind port 80 without root permissionsGrants a program the right to open low ports without running it as root.19 May 2026 - Tip
sudo ufw insert 1 deny from 203.0.113.7Ufw insert 1 puts a deny rule above your allow rulesAdds a rule at a chosen position so it is evaluated first.15 May 2026 - Tip
sudo ufw allow in on tailscale0Ufw allow in on tailscale0 trusts one interface instead of addressesAllows traffic arriving on one network interface, such as a VPN.11 May 2026 - Tip
sudo ufw reloadUfw before.rules is where you drop ping repliesEdits ufw's rule file to stop the host from answering pings.11 May 2026 - Tip
sudo ufw --dry-run allow 8080/tcpUfw --dry-run prints the rules it would add without applying themShows what a ufw command would change without making the change.11 May 2026 - Tip
sudo ufw status verboseUfw status verbose shows the defaults and the logging levelPrints active state, default policies and log level with the rule list.11 May 2026 - Tip
sudo ufw route allow in on wg0 out on eth0 to 192.168.1.0/24Ufw route allow controls traffic that passes through the hostWrites firewall rules for traffic that is forwarded between interfaces.11 May 2026 - Tip
sudo ufw default deny incomingUfw default deny incoming sets the policy for everything without a ruleSets what ufw does with traffic that none of your rules match.10 May 2026 - Tip
sudo ufw app listUfw app list shows the ready-made profiles for installed servicesUses named service profiles to open the right ports with one word.10 May 2026 - Tip
sudo ufw logging mediumUfw logging medium decides how much the firewall writes downSets how many firewall events ufw writes to its log file.10 May 2026 - Tip
sudo ufw delete allow 80/tcpUfw delete allow 80/tcp removes a rule by repeating itRemoves a firewall rule by naming it rather than looking up its number.10 May 2026 - Tip
sudo ufw allow from 192.168.1.0/24 to any port 5432 proto tcpUfw allow from a subnet to one port keeps a service on your LANOpens a port only to one source network instead of to everyone.10 May 2026 - Tip
sudo chmod 1777 /srv/dropboxChmod +t sets sticky permissions, so nobody deletes the files of othersStops users from deleting each other's files in a folder everyone can write to.5 Feb 2026
Network62
- Tip
tcpdump -nn -r capture.pcap port 53tcpdump -r reads a saved capture and filters it like a live oneOpen a saved packet capture in tcpdump and filter it with the usual expressions3 Dec 2026 - Tip
certbot renew --dry-runcertbot renew --dry-run tests your renewal before it mattersRehearses a Let's Encrypt renewal against the staging server without saving any certificate.3 Dec 2026 - Tip
tailscale lock sign nodekey:1abddef1 tlpub:abcdef12tailscale lock sign lets a new node into a locked tailnetSigns a new node's key from a signing node so it is accepted when Tailnet Lock is on.3 Dec 2026 - Tip
wg genpsk > peer1.pskwg genpsk adds a preshared key to a WireGuard peerGenerates a random preshared key that adds a symmetric layer on top of a WireGuard peer's key pair.3 Dec 2026 - Tip
mkcert -installmkcert makes a local certificate your browser trusts without warningsCreates a local CA and trusted certificates for localhost and test names in two commands.3 Dec 2026 - Tip
openssl s_client -connect 203.0.113.10:443 -servername example.com </dev/null | openssl x509 -noout -subjectopenssl s_client -servername shows which certificate a shared IP servesSends a chosen host name in the TLS handshake so you see that site's certificate.3 Dec 2026 - Tip
Strict-Transport-Security: max-age=0Strict-Transport-Security max-age=0 is the off switch for HSTSExplains how a site turns HSTS off again and why that only works over HTTPS.3 Dec 2026 - Tip
Referrer-Policy: strict-origin-when-cross-originReferrer-Policy decides how much of your URL other sites seeControls whether the browser sends the Referer header, and how much of the address it contains.3 Dec 2026 - Tip
Cache-Control: no-cacheCache-Control no-cache still stores a response, only no-store forbids itPick the right header for fresh pages versus pages that must not be saved.1 Dec 2026 - Tip
nmap -sV 192.0.2.10nmap -sV asks open ports what software is really listeningIdentify the service and often the version behind each open port.1 Dec 2026 - Tip
openssl x509 -in site.pem -noout -pubkey | openssl sha256openssl can tell you if a private key belongs to a certificateCompare the public key inside a certificate with the one derived from a private key.30 Nov 2026 - Tip
tailscale lock statustailscale lock status shows whether tailnet lock trusts this deviceSee your tailnet lock key and the trusted signing keys from one device.30 Nov 2026 - Tip
openssl ciphers -v 'ECDHE+AESGCM'openssl ciphers -v expands a cipher string into the real listSee exactly which cipher suites a config string like ECDHE+AESGCM allows.30 Nov 2026 - Tip
openssl x509 -in server.pem -pubkey -noout \Curl pinnedpubkey refuses a server whose key is not the one you expectPin the server's public key, so even a valid certificate with another key is refused.30 Nov 2026 - Tip
Strict-Transport-Security: max-age=63072000; preloadHSTS Sub-domains in Nginx Proxy Manager is a security header that is hard to undoExplains what the HSTS switches in NPM send and why they stick for two years.30 Nov 2026 - Tip
curl --cert client.pem --key client.key https://api.example.com/statuscurl cert and key log in to a server that wants a client certificateUse your own certificate and key to pass mutual TLS checks on an API or proxy.30 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com -showcerts 2>/dev/null \Openssl s_client -showcerts saves the chain a server sendsGrab every certificate a server presents, so you can inspect or verify the chain offline.30 Nov 2026 - Tip
"grants": [The ip field in a Tailscale grant limits access to the ports you nameAllow only the protocols and ports a service needs instead of the whole device.30 Nov 2026 - Tip
openssl x509 -inform der -in cert.cer -out cert.pemopenssl x509 -inform der turns a binary certificate into PEMConvert a .cer or .der certificate into the text PEM format Linux software expects.30 Nov 2026 - Tip
location /api/public/ {Nginx limit_except allows only the HTTP methods a location needsBlocks POST, PUT and DELETE on paths that should only ever be read.30 Nov 2026 - Tip
umask 077Set umask 077 before wg genkey so your WireGuard VPN key stays privateCreate a WireGuard key pair without leaving the private key readable for other users.30 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com -status 2>/dev/null \Openssl s_client -status shows whether a server staples OCSPSee if a server sends a stapled OCSP response with its certificate, and what it says.30 Nov 2026 - Tip
"grants": [Autogroup:self lets every Tailscale user reach only their own devicesLet people reach their own devices without seeing anyone else's on a shared tailnet.30 Nov 2026 - Tip
dig @a.iana-servers.net CH TXT version.bind +shortdig CH TXT version.bind asks a name server what it runsQuery the CHAOS class to see which software and version a DNS server reports.30 Nov 2026 - Tip
openssl storeutl -noout -certs fullchain.pemopenssl storeutl lists every certificate in a bundle fileSee all certificates in a chain or CA bundle, since x509 only reads the first one.30 Nov 2026 - Tip
openssl s_server -accept 8443 -cert cert.pem -key key.pem -wwwopenssl s_server -www starts a throwaway HTTPS test serverRun a tiny TLS server to test a certificate, a client or a firewall rule.30 Nov 2026 - Tip
openssl req -new -key site.key \openssl req -addext puts extra host names in a certificate requestMake a CSR with several Subject Alternative Names in one line, without a config file.30 Nov 2026 - Tip
proxy_hide_header X-Powered-By;Nginx proxy_hide_header strips backend headers like X-Powered-ByRemoves headers that reveal backend software versions before responses reach the client.30 Nov 2026 - Tip
allow 192.0.2.0/24;An IP-only access list in Nginx Proxy Manager is simple security for a home appLimits a proxy host to addresses you list, without asking for any password.30 Nov 2026 - Tip
"groups": {Groups in the Tailscale policy file keep your rules readableGive access to a named group once instead of listing email addresses in every rule.30 Nov 2026 - Tip
curl --hsts ~/.curl-hsts https://example.com/curl hsts remembers which sites must be HTTPS, like a browser doesKeep an HSTS cache file so curl upgrades plain http URLs for sites that asked for it.30 Nov 2026 - Tip
define( 'FORCE_SSL_ADMIN', true );FORCE_SSL_ADMIN keeps WordPress logins on HTTPS, mind the proxyForces the login page and admin onto HTTPS and explains the redirect loop behind a proxy.30 Nov 2026 - Tip
openssl pkcs12 -in site.pfx -nokeys -clcerts -out cert.pemopenssl pkcs12 -in gets the certificate and key out of a .pfx fileSplit a PKCS#12 bundle from Windows or a NAS export into PEM files for Linux software.30 Nov 2026 - Tip
limit_conn addr 1;Nginx limit_conn caps simultaneous connections per IP addressLimits how many connections one IP address may keep open at once.28 Nov 2026 - Tip
server {A default_server with return 444 drops requests for unknown host namesCloses the connection for requests whose host name matches none of your sites.28 Nov 2026 - Tip
curl --proto =https --proto-redir =https -L -o install.sh https://example.com/install.shcurl --proto =https refuses anything but HTTPSLimits curl and its redirects to HTTPS so a link can never downgrade to plain HTTP.28 Nov 2026 - Tip
tailscale set --shields-uptailscale set --shields-up blocks incoming connections on a personal deviceBlocks all incoming connections from your tailnet on one device.28 Nov 2026 - Tip
dig CAA example.com +shortdig CAA shows which certificate authorities may issue for your domainLists the certificate authorities that a domain's CAA records allow to issue certificates.28 Nov 2026 - Tip
nmap --script ssl-enum-ciphers -p 443 proxy.example.comnmap --script ssl-enum-ciphers grades the TLS ciphers a server offersLists every TLS protocol and cipher a server accepts and grades the weakest one from A to F.28 Nov 2026 - Tip
include conf.d/include/block-exploits.conf;Block Common Exploits in Nginx Proxy Manager is a list of regexes, and it can block your own appExplains what the Block Common Exploits switch blocks and why it can cause a 403 in your app.27 Nov 2026 - Tip
load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so;Nginx Proxy Manager ships the geoip2 module, so you can allow only Dutch visitorsBlocks visitors from outside the countries you choose on selected Nginx Proxy Manager hosts.27 Nov 2026 - Tip
ignoreip = 127.0.0.1/8 ::1 192.168.1.0/24 100.64.0.0/10ignoreip in jail.local stops fail2ban from banning your own networkKeeps fail2ban from banning addresses on your own LAN or tailnet.27 Nov 2026 - Tip
openssl pkcs12 -export -inkey site.key -in site.pem \openssl pkcs12 -export packs a key and certificate into one .pfx fileCombines a private key, certificate and chain into one password-protected .pfx file.27 Nov 2026 - Tip
openssl verify -show_chain -CAfile root.pem -untrusted intermediate.pem cert.pemopenssl verify -untrusted checks a certificate chain before you install itChecks whether a certificate and its intermediates form a valid chain before you deploy them.27 Nov 2026 - Tip
tailscale set --shields-uptailscale set --shields-up blocks incoming connections on a deviceMakes a device refuse incoming Tailscale connections while it can still reach others.24 Nov 2026 - Tip
allow 192.168.1.0/24; allow 10.8.0.2;Nginx allow and deny stop at the first match, so deny all goes lastRestricts a path to chosen addresses and refuses everyone else.24 Nov 2026 - Tip
location ^~ /uploads/ { root /var/www; }^~ in a nginx location stops regex locations from taking the requestMakes a prefix location final so no regex location can take over its requests.24 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -datesOpenssl s_client shows when a site's certificate expiresPrints the start and end date of a website's TLS certificate from the terminal.19 Nov 2026 - Tip
set_real_ip_from 192.168.1.0/24;Tell Nginx which proxy to trust, so your apps see the real client IPMakes nginx read the real visitor address from a header when another proxy sits in front.1 Oct 2026 - Tip
"tests": [Put a tests block in your Tailscale policy fileAdds checks to the policy file that reject any change breaking an access rule you wrote down.21 Aug 2026 - Tip
delv example.orgdelv checks whether DNSSEC validation worksLooks up a name and checks whether its DNSSEC signatures validate.24 Jul 2026 - Tip
limit_req_zone $binary_remote_addr zone=npmlimit:10m rate=10r/s;Rate limit your proxy hosts with http_top.conf and server_proxy.confLimits how many requests per second one client can send to your Nginx Proxy Manager hosts.16 Jul 2026 - Tip
tailscale whois 100.101.102.103tailscale whois shows who owns a Tailscale IPLooks up the machine and user behind a Tailscale IP address, for example from a log line.13 Jul 2026 - Tip
ports:Move the Nginx Proxy Manager admin page off port 81Changes the port of the Nginx Proxy Manager admin page from 81 to one you choose.3 Jul 2026 - Tip
openssl s_client -connect example.com:443 -servername example.com -tls1_1 </dev/nullopenssl s_client -tls1_1 tests whether a server still accepts old TLS, a security checkForces one TLS version in the handshake to see whether a server still accepts it.24 May 2026 - Tip
openssl x509 -in fullchain.pem -noout -subject -issuer -dates -ext subjectAltNameopenssl x509 -ext subjectAltName lists the names a certificate covers, a security checkPrints the hostnames, issuer and dates of a certificate file in one line of commands.24 May 2026 - Tip
printf 'header = "Authorization: Bearer %s"\n' "$API_TOKEN" | curl -K - https://api.example.com/meCurl -K – reads options from stdin so a token stays out of psPasses secrets to curl through stdin instead of visible command-line arguments.7 May 2026 - Tip
curl --cacert /etc/ssl/homelab-ca.pem https://nas.lan:8443/curl --cacert trusts your own CA, so you do not need -kVerifies a server against your own certificate authority instead of skipping verification.6 May 2026 - Tip
curl -u alice https://example.com/private/curl -u with only a username prompts for the passwordMakes curl ask for the password so it never appears in history or the process list.6 May 2026 - Tip
server_tokens off;server_tokens off hides the nginx version from headers and error pagesRemoves the nginx version number from the Server header and error pages.5 May 2026 - Tip
add_header X-Content-Type-Options nosniff always; # server blockadd_header inside a nginx location drops the headers from the server blockExplains why headers set in the server block disappear inside a location with its own add_header.3 May 2026 - Tip
location = /login { limit_req zone=login burst=5 nodelay;Nginx limit_req slows brute-force attempts on a login pageLimits how often one client address may request a path and returns 429 beyond that.3 May 2026
Other tips35
- Tip
sha256sum -c --ignore-missing SHA256SUMSsha256sum -c --ignore-missing checks only the files you actually downloadedVerify only the downloaded files against a big checksum list, without errors for the rest.3 Dec 2026 - Tip
lastlog --before 90lastlog --before finds accounts that have not logged in latelyList accounts that have not logged in for a number of days3 Dec 2026 - Tip
nmap --packet-trace -p 22,80 192.0.2.10nmap --packet-trace prints every packet Nmap sends and receivesPrints a summary line for each packet Nmap sends or receives during a scan.3 Dec 2026 - Tip
printf %s hello | openssl dgst -sha256 -hmac secretOpenssl dgst -hmac signs a message with a shared secretComputes an HMAC of a file or text with a secret key, as used for webhook signatures.3 Dec 2026 - Tip
openssl pkcs12 -legacy -in old.pfx -nokeysopenssl pkcs12 -legacy opens an old .pfx that OpenSSL 3 refusesLoads the legacy provider so OpenSSL 3 can read a .pfx made with RC2 or 3DES.3 Dec 2026 - Tip
FROM pg_hba_file_rulesPg_hba_file_rules shows PostgreSQL login rules and the line that is brokenLists the rules in pg_hba.conf as rows, with an error message for lines that cannot be parsed.2 Dec 2026 - Tip
Find My > Items (or Devices) > pick one > Notify When Left BehindNotify When Left Behind warns you when an Apple device stays behindFind My can alert you when you walk away from an AirTag or device.1 Dec 2026 - Tip
Require Face ID to Unlock Private BrowsingLock Private Browsing in Safari behind Face ID or Touch IDKeep open private tabs closed to anyone who borrows your device.1 Dec 2026 - Tip
rclone config redactedrclone config redacted makes your config safe enough to sharePrints your remote settings with secrets hidden so you can ask for help.1 Dec 2026 - Tip
ALTER USER 'app'@'localhost' ACCOUNT LOCK;Lock a MariaDB account for a while instead of dropping itBlocks logins for a user while keeping its password and grants.1 Dec 2026 - Tip
mysql_config_editor set --login-path=shop \mysql_config_editor saves login details under a login pathStores host, user and password so you stop typing them in commands.1 Dec 2026 - Tip
nmap -oX before.xml 192.0.2.10Ndiff compares two nmap XML scans and shows what changedSpot new or vanished ports by diffing a saved scan against a fresh one.1 Dec 2026 - Tip
nmap --script-help ssh2-enum-algosnmap script-help explains an NSE script before you run itRead what a script does and which categories it belongs to.1 Dec 2026 - Tip
| openssl s_client -connect example.com:443 -servername example.com -quiet -keylogfile keys.logOpenssl s_client -keylogfile lets Wireshark decrypt your own TLS testWrite the TLS session secrets to a file so a packet capture of that connection can be decrypted.30 Nov 2026 - Tip
openssl version -dopenssl version -d shows where OpenSSL looks for its config and CA storeFind the folder OpenSSL uses for openssl.cnf and trusted certificates on this machine.30 Nov 2026 - Tip
findmnt -no OPTIONS /dev/shmMount /dev/shm with noexec for a little extra security on a serverStops programs from being run directly out of the shared memory folder.30 Nov 2026 - Tip
find /etc /var/www -ctime -1 -lsfind -ctime catches permission changes that find -mtime missesFinds files whose owner or permissions changed recently, even when their content did not.30 Nov 2026 - Tip
openssl req -in site.csr -noout -text -verifyopenssl req -verify checks a CSR before you hand it to a CAInspect a certificate signing request and check its signature, so a typo does not cost a reissue.30 Nov 2026 - Tip
pro security-statuspro security-status shows which packages get Ubuntu security updates and which don'tCounts your installed packages by where their security updates come from.30 Nov 2026 - Tip
openssl errstr 0A000086openssl errstr turns an error code into a readable messageDecode the hex error codes that OpenSSL based programs print in logs.30 Nov 2026 - Tip
sysctl fs.protected_regular fs.protected_fifos fs.protected_symlinks fs.protected_hardlinksFs.protected_regular stops tricks with files other users leave in Linux /tmpMake sure a program cannot be fooled into writing to a file another user planted in /tmp.30 Nov 2026 - Tip
openssl genpkey -algorithm ed25519 -out ed.keyopenssl genpkey makes Ed25519, EC or RSA keys with one commandGenerate any type of private key with the modern genpkey command instead of genrsa.30 Nov 2026 - Tip
sysctl kernel.dmesg_restrict kernel.kptr_restrictKernel.dmesg_restrict keeps the kernel log away from normal users, a security sysctlStops unprivileged users from reading the kernel ring buffer with dmesg.30 Nov 2026 - Tip
fwupdmgr securityfwupdmgr security gives your firmware a Host Security IDRates the firmware protections of a Linux machine from HSI:0 to HSI:5 and explains each failed test.28 Nov 2026 - Tip
mokutil --sb-statemokutil --sb-state tells you if Secure Boot is onShows whether UEFI Secure Boot is switched on for the running system.28 Nov 2026 - Tip
clamscan -r -i /mnt/user/shareclamscan -r -i scans a folder and prints only the infected filesScans a folder recursively with ClamAV and lists only the infected files.28 Nov 2026 - Tip
Get-FileHash .\ubuntu.isoGet-FileHash checks a download on Windows without extra toolsCalculates the SHA256 checksum of a file in PowerShell so you can compare it.25 Nov 2026 - Tip
openssl rand -base64 32openssl rand -base64 32 makes a strong random secret in one linePrints random bytes from a secure generator, encoded as base64 or hex, for use as a password or key.25 Nov 2026 - Tip
gpg --import project-signing-key.ascgpg --verify checks a signature file against the file it signsVerifies that a downloaded file matches its detached signature and was signed by the key you expect.24 Nov 2026 - Tip
pro statuspro status shows what Ubuntu Pro covers on your machineLists which Ubuntu Pro security services are active on this machine and whether it is attached.24 Oct 2026 - Tip
umask 027umask decides the permissions of every new fileSets the default permissions for new files and directories so others get no access.6 Sep 2026 - Tip
nmap -Pn -p- --open 192.168.1.10nmap -p- --open from another machine shows what your server exposes, a security auditScans all TCP ports of your own server from outside and lists only the open ones.22 May 2026 - Tip
find /var/www -perm /o+w ! -type lfind -perm /o+w lists files that anyone can write toLists files and folders in which the others class has write access.20 May 2026 - Tip
snap connections firefoxsnap connections shows which resources a snap may useLists the sandbox permissions of a snap and whether each is connected.15 May 2026 - Tip
dig +dnssec example.com Adig +dnssec shows the signatures and the ad flagShows RRSIG records and whether the resolver validated the answer.9 May 2026
Security34
- Tip
certbot certificatescertbot certificates lists every certificate and when it expiresShows each certificate Certbot manages, with its domains, expiry date and file paths.3 Dec 2026 - Tip
openssl x509 -in cert.pem -days 365 -signkey key.pem -out cert-new.pemopenssl x509 -signkey renews a self-signed certificate with the same keyRe-signs an existing self-signed certificate with new dates, keeping its key and extensions.3 Dec 2026 - Tip
rclone cryptcheck /mnt/user/photos secret:photos --one-wayrclone cryptcheck verifies encrypted uploads without downloading themCompares local files with their encrypted copies using checksums.1 Dec 2026 - Tip
ALTER USER 'appuser'@'192.0.2.10'Rotate a MySQL password without downtime using a second oneLets old and new passwords both work while applications are updated.1 Dec 2026 - Tip
manage-bde -statusmanage-bde -status shows whether a Windows drive is BitLocker encryptedCheck encryption state, progress and key protectors for every drive.1 Dec 2026 - Tip
wp user application-password create anna backup-script --porcelainwp user application-password create gives a WordPress REST client its own keyCreates a revocable password for one script or app to call the REST API.30 Nov 2026 - Tip
openssl enc -aes-256-cbc -pbkdf2 -salt -in notes.txt -out notes.txt.encopenssl enc needs -pbkdf2 when you encrypt a file with a passwordEncrypt and decrypt a single file with a password the safer way openssl enc offers.30 Nov 2026 - Tip
openssl passwd -6openssl passwd -6 makes a SHA-512 password hash for LinuxGenerate a crypt style password hash for cloud-init, Ansible or a user account.30 Nov 2026 - Tip
openssl pkey -in site.key -aes256 -out site-enc.keyopenssl pkey adds or removes the passphrase on a private keyEncrypt a private key file with a passphrase, or take it off for a service that cannot ask.30 Nov 2026 - Tip
openssl speed -evp aes-256-gcmopenssl speed shows how fast a machine encryptsBenchmark AES and other algorithms on a NAS, Pi or VPS before you pick a cipher or VPN.30 Nov 2026 - Tip
wp config create --dbname=example_wp --dbuser=example --prompt=dbpasswp config create with prompt keeps the WordPress database password out of historyGenerates wp-config.php with fresh salts while the password never appears on the command line.30 Nov 2026 - Tip
AuthenticationMethods publickey,passwordAuthenticationMethods makes sshd ask for a key and a passwordRequire two login steps, so a stolen key or a guessed password alone is not enough.30 Nov 2026 - Tip
cat > ~/.my.cnf <<'EOF'A [client] section in ~/.my.cnf keeps the database password off your command lineStores the client login in a private file so commands and cron jobs need no -p.30 Nov 2026 - Tip
chage -l <user>chage -l shows when a Linux password or account expiresShows the password and account expiry settings of a Linux user.28 Nov 2026 - Tip
password secretCurl --netrc reads passwords from ~/.netrc instead of the command lineLets curl take the login for a host from a locked-down .netrc file, so no password shows in the command.28 Nov 2026 - Tip
openssl s_client -starttls smtp -connect mail.example.com:587 -servername mail.example.com -briefopenssl s_client -starttls smtp checks the certificate of a mail serverOpens a STARTTLS session to a mail server and shows the certificate and TLS details.28 Nov 2026 - Tip
Passwords > SecurityThe Security list in Passwords shows which of your passwords are weak or leakedShows which saved passwords are weak, reused or found in a data leak.28 Nov 2026 - Tip
Passwords > select the account > Edit > Set Up CodeThe Passwords app on your Mac can fill in two-factor codesStores two-factor codes for your accounts in the Mac Passwords app and fills them in.28 Nov 2026 - Tip
/usr/libexec/ApplicationFirewall/socketfilterfw --getallowsignedStop the Mac firewall from waving through every signed appMakes new downloaded apps ask before the Mac firewall lets incoming connections in.28 Nov 2026 - Tip
System Settings > General > Time Machine > Add Backup Disk > Encrypt backupsTurn on Encrypt backups in Time Machine, and save the password somewhere safeEncrypts your Time Machine disk so a lost drive doesn't expose your files.28 Nov 2026 - Tip
> Apple Watch: turn on the switch next to your watchLet your Apple Watch unlock your Mac and approve password promptsUnlocks your Mac and approves admin prompts from the Apple Watch on your wrist.28 Nov 2026 - Tip
borg key export /path/to/repo encrypted-key-backupborg key export saves the key you need to open a Borg repositoryExports the Borg encryption key to a file or paper, so a lost server doesn't lock you out.27 Nov 2026 - Tip
ls ~/.gnupg/openpgp-revocs.d/GnuPG already made a revocation certificate for your key, so back it upFinds and backs up the certificate that lets you revoke a lost or leaked GPG key.27 Nov 2026 - Tip
use_ssl nouse_ssl no gets you back into the WebGUI when Strict SSL locks you outRegain WebGUI access from the console when DNS is down and SSL is set to Strict.25 Nov 2026 - Tip
root:$&$&%*1112233484847648DHD$%.:15477:0:99999:7:::Forgot the Unraid root password? Edit one line in config/shadow on the boot deviceReset only the root password from the boot device and keep the share users' passwords.25 Nov 2026 - Tip
/boot/config/ssl/certs/[servername]_unraid_bundle.pemA custom certificate for the Unraid WebGUI goes in /boot/config/ssl/certsServe the Unraid WebGUI with your own domain certificate instead of a self-signed one.25 Nov 2026 - Tip
gpg --symmetric --armor --output secret.txt.asc secret.txtgpg --symmetric and --encrypt protect a file with a passphrase or a keyEncrypts a file with GnuPG, either with a passphrase or for someone's public key.25 Nov 2026 - Tip
openssl req -x509 -newkey rsa:2048 -days 365 \openssl req -x509 makes a self-signed test certificate in one commandCreates a private key and a self-signed certificate with a subjectAltName, for testing HTTPS locally.25 Nov 2026 - Tip
openssl x509 -fingerprint -sha256 -noout -in cert.pemopenssl x509 -fingerprint prints a certificate's SHA-256 fingerprintPrints the SHA-256 fingerprint of a PEM certificate, for comparing with a value you trust.25 Nov 2026 - Tip
chage -l jordichage -l shows when an account's password or login expiresLists the password aging and expiry details of a user account.24 Nov 2026 - TipUnraid Connect flash backup stores your config in the cloud without encryptionDescribes what the automatic cloud backup of the USB flash drive contains and how it is stored.18 Nov 2026
- TipAn access list with a password can lock you out of the app behind itExplains why a password on a proxy host breaks apps that have their own login.10 Sep 2026
- Tip
openssl x509 -in /etc/ssl/site/fullchain.pem -noout -checkend 1209600openssl x509 -checkend returns an exit code for expiry, a security check for cronTests whether a certificate file expires within a chosen time and signals it with the exit code.23 May 2026 - Tip
wp user reset-password admin --skip-email --show-passwordwp user reset-password --skip-email changes a wordpress password without mailSets a new random password for a user without sending an email and prints it in the terminal.24 Mar 2026
Docker32
- Tip
cat ~/my_token.txt | docker login --username myname --password-stdinDocker login --password-stdin keeps your password out of shell historyLogs in to a registry with a password read from standard input, not typed in the command.2 Dec 2026 - Tip
docker exec --user www-data nextcloud php occ twofactorauth:state laylaOcc twofactorauth:disable rescues a Nextcloud user who lost their phoneSwitches off one two factor method so a locked out user can log in.1 Dec 2026 - Tip
docker exec -it immich_server immich-admin enable-password-loginimmich-admin enable-password-login rescues you when Immich OAuth breaksTurns password sign in back on from the server when single sign on fails.1 Dec 2026 - Tip
getent group sudo adm docker lxdgetent group sudo lists everyone with admin rights, a two second security checkShows which accounts are in the groups that grant sudo or root access.30 Nov 2026 - Tip
- /var/run/docker.sock:/var/run/docker.sock:roMounting the Docker socket read-only does not make it safeKnow that :ro on docker.sock still lets a container control Docker fully.30 Nov 2026 - Tip
services:Compose secrets put a password in a file instead of an environment variableMount a secret as a file under /run/secrets instead of exposing it in the environment.30 Nov 2026 - Tip
sudo iptables -I DOCKER-USER -i eth0 ! -s 192.0.2.0/24 -j DROPThe DOCKER-USER chain is where your own firewall rules for Docker goRestrict who may reach published container ports with rules Docker will not overwrite.30 Nov 2026 - Tip
docker ps -q | xargs docker inspect -f '{{.Name}} privileged={{.HostConfig.Privileged}}'One docker inspect line shows which containers run privileged, a quick security auditLists every running container together with its privileged flag.30 Nov 2026 - Tip
docker network create --internal backendAn internal Docker network gives containers no route to the internetKeep a database or backend on a network that cannot reach the outside world.30 Nov 2026 - Tip
docker run --rm -e API_KEY example/app:1.0docker run -e NAME without a value copies the variable from your shellPass a secret from your shell into a container without typing it on the command line.30 Nov 2026 - Tip
sudo usermod -aG docker "$USER"Being in the docker group is the same as having rootTreat membership of the docker group like sudo without a password.30 Nov 2026 - Tip
trivy config .trivy config checks a Dockerfile for security mistakes before you build itScans Dockerfiles and other config files for risky settings like running as root.30 Nov 2026 - Tip
docker run --rm --network none \Run a Docker container with no network at all for untrusted workCut a one-off container off from every network, with only loopback inside.30 Nov 2026 - Tip
docker run -d --name web \Add :ro to a Docker bind mount when the container only needs to readMount config folders read-only so a container can read but never change them.30 Nov 2026 - Tip
COPY --chown=app:app . .COPY with chown sets file owners in a Dockerfile without an extra layerGive copied files to the app user in the same step that copies them.30 Nov 2026 - Tip
docker run -d --name web --cap-drop ALL --cap-add NET_BIND_SERVICE -p 8080:80 nginxdocker run --cap-drop ALL strips every Linux capability from a containerRemoves every Linux capability from a container so you only add back what the app really needs.28 Nov 2026 - Tip
docker run --rm -it --security-opt no-new-privileges ubuntu bash–security-opt no-new-privileges stops a container process from gaining privilegesBlocks processes inside a container from gaining extra privileges through su, sudo or setuid binaries.28 Nov 2026 - Tip
docker build --secret id=token,src=$HOME/.build-token -t example/app:1.0 .docker build --secret hands a password to one build step without baking it into the imagePasses a private value to one Dockerfile step as a temporary file that never lands in the image.28 Nov 2026 - Tip
format: rawFormat: raw passes dollar signs in an env file through untouchedReads an env file without interpolation, so dollar signs and quotes arrive unchanged.28 Nov 2026 - Tip
docker exec -it immich_server immich-admin reset-admin-passwordimmich-admin reset-admin-password gets you back into ImmichResets the Immich admin password from inside the server container.28 Nov 2026 - Tip
trivy image example/app:1.2trivy image scans a container image for known flawsScans a container image and shows only serious vulnerabilities that already have a fix.28 Nov 2026 - Tip
docker run -d -p 9001:9001 --name portainer_agent --restart=always \Give the Portainer Agent an AGENT_SECRET, so a rebuilt Portainer can still connectLets a Portainer agent accept any Portainer server that knows a shared secret, instead of only the first.27 Nov 2026 - Tip
docker run -d --pids-limit 200 --name web nginxdocker run --pids-limit stops one container from forking your server to deathCaps how many processes a container may start, so a runaway or fork bomb stays inside it.26 Nov 2026 - TipOpen the Action Center in the Apps tab for deprecated and blacklisted appsSpot deprecated, incompatible or blacklisted apps on your server, not just updates.25 Nov 2026
- Tip
docker run -d --read-only \Run a container with --read-only and a small tmpfsMakes a container's filesystem read-only, with writable memory-backed folders only where you allow them.1 Oct 2026 - Tip
docker run -d ... portainer/portainer-ce:lts --http-disabledSwitch on Force HTTPS only in Portainer, but test 9443 firstTurns off Portainer's plain HTTP port so the web UI is only served over HTTPS.28 Sep 2026 - Tip
environment:Run Nginx Proxy Manager as a normal user with PUID and PGIDRuns Nginx Proxy Manager as a regular user instead of root and fixes folder ownership.4 Sep 2026 - Tip
environment:Keep the database password out of your NPM compose file with __FILEMakes Nginx Proxy Manager read its database password from a file instead of the compose file.16 Aug 2026 - Tip
environment:X_FRAME_OPTIONS decides whether your apps can be shown in an iframeAllows Nginx Proxy Manager hosts to be shown in iframes from the same origin.24 Jul 2026 - Tip
docker run -d -p 9443:9443 --name portainer \Start Portainer with --admin-password-file instead of typing the password in timeSets the first admin password from a file when Portainer starts, so you skip the setup page.22 Jun 2026 - Tip
docker logs portainer 2>&1 | grep setup_tokenFind the portainer setup token in the docker logs with grep setup_tokenShows where to find or preset the one-time token that a fresh Portainer needs.26 May 2026 - Tip
docker run -d -p 127.0.0.1:8080:80 nginxUfw does not filter Docker ports, so publish them on 127.0.0.1Explains why ufw misses published container ports and how to avoid it.11 May 2026
Web16
- Tip
wp super-admin listwp super-admin list shows who has super admin rightsLists the users with super admin capabilities on a WordPress multisite install.2 Dec 2026 - Tip
async function sha256(text) {The Web Crypto API makes a SHA-256 hash right in the browserFingerprint text or a file in the page without adding a library.1 Dec 2026 - Tip
wp theme delete --allwp theme delete with the all flag clears out unused WordPress themesRemoves every theme except the active one, so old themes stop waiting for updates.30 Nov 2026 - Tip
wp user set-role anna authorwp user set-role changes what a WordPress account may doGives a user one new role and removes the roles the account had before.30 Nov 2026 - Tip
runuser -u www-data -- php /var/www/app/occ statusrunuser runs a command as another Linux user without a password or sudo ruleRun a command as a service account from a root script, without su or sudo prompts.30 Nov 2026 - Tip
wp cap list editor | sortwp cap list shows exactly what a WordPress role is allowed to doPrints the capabilities of a role so you can see what editors or shop managers may do.30 Nov 2026 - Tip
echo | openssl s_client -connect example.com:443 -servername example.com \Openssl s_client -verify_hostname checks the name the way a browser doesMake s_client fail on a wrong host name or untrusted chain instead of just printing a warning.30 Nov 2026 - Tip
wp user list --role=administrator --fields=ID,user_login,user_email,user_registeredwp user list --role=administrator shows who can do everythingLists every administrator account of a WordPress site with only the columns you pick.28 Nov 2026 - Tip
wp user session destroy admin --allwp user session destroy --all logs one account out everywhereEnds every login session of one WordPress account so old logins stop working.28 Nov 2026 - Tip
wp role listwp role list shows the roles a WordPress site hasLists every role on a WordPress site, including any that plugins added.28 Nov 2026 - Tip
define( 'WP_HTTP_BLOCK_EXTERNAL', true );WP_HTTP_BLOCK_EXTERNAL stops WordPress from calling out to the internetBlocks outgoing HTTP requests from WordPress except to hosts you put on an allowlist.27 Nov 2026 - Tip
wp config shuffle-saltswp config shuffle-salts logs everybody out after a break-inReplaces the keys and salts in wp-config.php so every existing WordPress login session becomes invalid.18 Oct 2026 - Tip
define( 'DISALLOW_FILE_MODS', true );DISALLOW_FILE_MODS locks plugin and theme changes, not just the editorStops anyone from installing or updating plugins and themes in the admin, so a stolen login can do less.15 Jul 2026 - Tip
wp plugin verify-checksums --allwp plugin verify-checksums --all checks every plugin against WordPress.orgChecks the files of every installed plugin against WordPress.org and lists any that do not match.21 Jun 2026 - Tip
wp core verify-checksumswp core verify-checksums tells you if someone touched your WordPress filesCompares your WordPress core files with the official list and reports anything changed or unexpected.13 Jun 2026 - Tip
define( 'DISALLOW_FILE_EDIT', true );define DISALLOW_FILE_EDIT to remove the wordpress theme and plugin code editorsRemoves the code editors from the wordpress admin menu so admins cannot edit PHP in the browser.25 Mar 2026
Storage8
- Tip
dpkg --verify openssh-serverdpkg --verify lists files of installed packages that changed on diskChecks installed package files against the md5sums dpkg stored at install time.3 Dec 2026 - Tip
openssl x509 -req -in nas.csr \openssl x509 -req signs a server certificate with your own CATurn a CSR into a certificate signed by a homelab CA, keeping the host names from the request.30 Nov 2026 - Tip
openssl dgst -sha256 -sign private.pem -out backup.tar.gz.sig backup.tar.gzopenssl dgst -sign and -verify sign a file with your own keyProve a file came from you and was not changed, using a key pair and two commands.30 Nov 2026 - Tip
echo 'db1.example.com:5432:*:backup:change-me' >> ~/.pgpassA ~/.pgpass file lets psql and pg_dump log in to PostgreSQL without a promptStores PostgreSQL passwords per host and user in a private file that all client tools read.30 Nov 2026 - Tip
smb://192.168.1.x/mediaRoot cannot open Unraid shares over SMB, so create a share userExplains why root cannot open Unraid shares over SMB and that a separate share user is needed.28 Nov 2026 - Tip
Account Settings > MFA > Enable MFATurn on MFA for your Unraid account in Account SettingsProtect the Unraid account that holds your license keys with an authenticator app code.25 Nov 2026 - Tip
unraid-api apikey --createunraid-api apikey --create makes a key with only the role a script needsCreate a separate Unraid API key per app with the smallest role that works.25 Nov 2026 - Tip
Yes visible and reachableSet the boot device share to Export No, or at least PrivateKeep the boot device share off the network so nobody on your LAN can change it.25 Nov 2026
Phone6
- Tip
Settings > [your name] > Sign-In & Security > Recovery ContactsAdd a recovery contact to your Apple Account before you get locked outA trusted person can give you a code to reset your Apple Account, without any access to the account.2 Dec 2026 - Tip
iPhone: Settings > [your name] > Sign-In & Security > Legacy ContactAdd a Legacy Contact so someone can reach your Apple Account dataChoose who may request access to your Apple data after your death.1 Dec 2026 - Tip
Touch and hold the app icon > Require Face IDRequire Face ID locks a single app on your iPhonePut one app behind Face ID, even when the phone is unlocked.1 Dec 2026 - Tip
Settings > Privacy & Security > Safety CheckSafety Check on iOS shows who can see your location and dataReview or stop sharing with people and apps from one screen.1 Dec 2026 - TipLockdown Mode is for a few people, and Safari lets you exclude a websiteTurns on Apple's extreme protection mode and lets you exclude single websites in Safari.28 Nov 2026
- Tip
Settings > Face ID & Passcode > Stolen Device ProtectionStolen Device Protection stops a thief who knows your iPhone passcodeRequires Face ID and an hour's delay before a thief can change your Apple Account.27 Nov 2026
Mac6
- Tip
System Settings > Lock Screen > Show message when locked (on)Show a message on your Mac's lock screen for whoever finds itPut contact details on the lock screen in case the Mac gets lost.1 Dec 2026 - Tip
fdesetup statusfdesetup status tells you in one line whether FileVault is onChecks from Terminal whether FileVault disk encryption is on and a recovery key exists.28 Nov 2026 - Tip
profiles status -type enrollmentprofiles status -type enrollment shows whether a Mac is managed by an organisationChecks whether a Mac is enrolled in device management and lists its installed profiles.28 Nov 2026 - Tip
System Settings > Privacy & Security > Accessories > Allow accessories to connectAllow accessories to connect decides when your MacBook trusts a USB stickSets when an Apple silicon MacBook asks before it lets a USB or Thunderbolt accessory connect.28 Nov 2026 - Tip
Control-Command-Q lock your screenControl-Command-Q locks your Mac the moment you walk awayLocks your Mac screen instantly with one shortcut, while your apps keep running.28 Nov 2026 - Tip
Users: larry curly moeGive every Mac its own Unraid user and its own Time Machine shareKeep each Mac's Time Machine backups separate, private and size-limited on Unraid.25 Nov 2026
Git4
- Tip
git grep -n 'API_KEY' $(git rev-list --all)git grep over every commit finds a secret that was ever committedSearches all versions of all files in history, not just the current checkout.30 Nov 2026 - Tip
Host github.comIdentityAgent tells ssh which key agent to use for each hostPoint ssh at a different agent socket per host, or switch the agent off entirely.30 Nov 2026 - Tip
"ask": ["Bash(git push *)"]An ask rule makes Claude Code check with you before every git pushForces a confirmation prompt for chosen commands, even in modes that would allow them.30 Nov 2026 - Tip
git config --global gpg.format sshSign your git commits with the SSH key you already haveSigns commits with an SSH key instead of GPG, with three config lines.30 Nov 2026
Media3
- Tip
Get-Item * -Stream Zone.Identifier -ErrorAction SilentlyContinueUnblock-File clears the Windows internet mark on a downloaded scriptRun a downloaded PowerShell script you checked, without loosening the execution policy.1 Dec 2026 - Tip
sudo ufw allow 8096/tcp comment 'Jellyfin'Ufw allow with comment puts the reason for a rule next to itAdds a short note to a firewall rule so you remember why the port is open.27 Nov 2026 - Tip
redis-cli monitor | head -n 20redis-cli monitor streams every command, so stop it after a few lines on a busy cacheShows live Redis commands for a moment while keeping the load on a busy server small.26 May 2026
AI2
- Tip
exit 2Block edits to .env with a PreToolUse hook that exits 2Blocks Claude Code from editing protected files by running a script that exits with code 2.26 Sep 2026 - Tip
"permissions": {Deny Read(./.env) so Claude never opens your secretsStops Claude Code from reading your .env file by adding a deny rule to settings.14 Aug 2026
Home Assistant1
Python1
Posts6
- PostCloudflare now wants to be fully post-quantum in 2027, and the part still open is proving who you are3 Dec 2026
- PostCloudflare plugin for Claude Code: 22 skills and one big MCP server2 Dec 2026
- PostAdGuard Home with Unbound review: filtering and recursion at home28 Nov 2026
- PostUBlock Origin’s element picker could be steered by a web page, and I’d check my Firefox version13 Nov 2026
- PostClaude Code’s “don’t ask again” saved real passwords in 1,122 public GitHub files, and I’d check my own repos8 Nov 2026
- PostPHP2Shell: patch your PHP, then look at what your stuff runs on26 Oct 2026
Nothing matches.