Difference between revisions of "ssh-keygen"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(links, int & ext)
(bad syntax)
Line 8: Line 8:
 
==Pages==
 
==Pages==
 
* {{l/manpage}} for this system
 
* {{l/manpage}} for this system
 +
 +
Note that there is bad syntax in the command format on the manpage. The manpage says:
 +
ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa]
 +
The clause which begins with <code>[-t</code> implies that you could type "-t dsa" or "ecdsa" or "ed25519" or "rsa", but the actual choices are "-t dsa" or "-t ecdsa" or "-t ed25519" or "-t rsa". The actual syntax should be:
 +
ssh-keygen [-q] [-b bits] [-t [dsa | ecdsa | ed25519 | rsa]]
 
==Links==
 
==Links==
 
* {{wikipedia}}
 
* {{wikipedia}}

Revision as of 02:02, 9 February 2020

About

ssh-keygen is a Linux command for generating ssh keys.

Just typing the command without any arguments will generate a new key in ~/.ssh/id_rsa (a prompt offers to let you change this), with an optional passphrase (also queried by prompt).

It can also be used to remove conflicting entries from the .known-hosts file.

Pages

Note that there is bad syntax in the command format on the manpage. The manpage says:

ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa]

The clause which begins with [-t implies that you could type "-t dsa" or "ecdsa" or "ed25519" or "rsa", but the actual choices are "-t dsa" or "-t ecdsa" or "-t ed25519" or "-t rsa". The actual syntax should be:

ssh-keygen [-q] [-b bits] [-t [dsa | ecdsa | ed25519 | rsa]]

Links