~/.ssh/authorized_keys. Secure and convenientssh user@server.com # connect
ssh-keygen -t ed25519 # generate keys
ssh-copy-id user@server.com # copy public keySSH lets you forward a local port through an encrypted tunnel — for example, connecting to a production database from your laptop without exposing the DB port to the internet.