Back to the learning path

ssh-keygen

ssh-keygen = SSH key generator Command details
Step 1/1: Make a key

Keys are safer than passwords: ssh-keygen -t ed25519 makes a key pair; the private key ~/.ssh/id_ed25519 stays with you, the public key .pub goes into ~/.ssh/authorized_keys on the server (ssh-copy-id puts it there). -C adds a comment (usually its use or an email), -N "" sets no passphrase.

$ ssh-keygen -t ed25519 -C laptop
Fundamentalsssh-keygenssh
Make an SSH key
Make an ed25519 SSH key pair in the default place (~/.ssh/id_ed25519) with the comment work. The passphrase may stay empty: press Enter when asked.

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.

sshNext lesson:scp