JAEN

Linux

ssh-keygen

SafeGenerate SSH keys

ssh-keygen -t ed25519

Creates a key pair (ed25519 recommended). Install the .pub into the remote authorized_keys.

Examples

  • ssh-keygen -t ed25519 -C '[email protected]'Create an ed25519 key
  • ssh-copy-id user@hostInstall key on remote

Syntax

ssh-keygen [-t type] [-f file] [-C comment]

Before you run it

Guard the private key; avoid overwriting.

Used when you see

SSH key auth fails
2
Verify the key pair via fingerprints
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store