AI Generated Cheatsheets

SSH-Keygen Cheatsheet

The ssh-keygen command is used to generate, manage, and convert authentication keys for SSH (Secure Shell) protocol.

Basic Syntax

ssh-keygen [options]

Examples

Options

Option Description
-t Specifies the type of key to create.
-b Specifies the number of bits in the key.
-f Specifies the filename of the key file.
-C Adds a comment to the key.
-N Specifies a new passphrase for the key.
-p Changes the passphrase of the key.
-m Specifies the key format to use for the key.
-l Displays the fingerprint of the key.

Resources