Client: ~/.ssh/config
Give a server a short name once, then type ssh web1 instead of the whole command every time. The block goes in ~/.ssh/config on your own computer.
~/.ssh/config
then just
instead of
No key yet? ssh-keygen -t ed25519 -C "you@laptop", then ssh-copy-id web1 to put it on the server.
Server: hardened sshd_config
A drop-in file for the SSH server. On Debian, Ubuntu and most current distros, /etc/ssh/sshd_config.d/*.conf is read first, and sshd keeps the first value it sees, so this file wins over the defaults.
/etc/ssh/sshd_config.d/90-hardening.conf
test, then apply
Works on my machine™. This is a starting point, not a guarantee: read it, test it, and keep that second SSH session open. Disclaimer
More tools
- chmod calculatorFile permissions, in octal, symbolic and plain English.
$ chmod 755 script.sh - cron expressionCrontab schedules in plain English, with the next run times.
$ */15 2-6 * * 1-5 - systemd timerA cron job as a systemd service and timer, ready to copy.
$ systemctl enable --now backup.timer - SSL decoderDecode certificates and CSRs without uploading them anywhere.
$ openssl x509 -noout -text - Password generatorStrong random passwords, made and kept in your browser.
$ openssl rand -base64 24