ssh: Secure Shell — Log in to a remote server securely over the network. ssh opens a secure, encrypted connection to another computer, usually to get a terminal on a server: ssh user@server.example.com. It is also the transport behind scp, rsync and Git over SSH. Use key-based login instead of passwords. Generate a key pair with ssh-keygen, put the public key on the server, and keep the private key on your machine, protected with a passphrase.
A ~/.ssh/config file saves typing, with short names for servers and their user, port and key. On servers, disable password login and root login over SSH, and keep the system updated. SSH tunnels with -L let you reach a database that only listens locally on the server, without exposing it to the internet, which is a safe way to inspect production data when needed.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Use when an HTTP request returns an unexpected status code (4xx or 5xx, or a redirect loop), when a user pastes an error like "419 Page Expired", "422 Unprocessable Content", "502 Bad Gateway" or "CORS error", or when debugging API calls between a frontend and a Laravel/PHP or Node backend. Finds the cause from the status code, headers and logs before changing code.