SSH keys without the mystery
Public-key SSH proves you possess a private key without sending that private key to your server.
Generate a key pair on your laptop
ssh-keygen -t ed25519 -C "my-laptop"Use a passphrase. Your public key can be copied to a server; your private key must remain private.
Install your public key on the Pi
ssh-copy-id learner@linuxlab.localOr add the contents of the public .pub file to ~/.ssh/authorized_keys on the Pi.
Verify it works
ssh learner@linuxlab.localKeep an existing session open while changing SSH settings. Validate changes with sudo sshd -t before restarting the service.
Never paste SSH private keys or passwords into a public website.
← BACK TO JOURNAL
CYBER