![Forrest logo](/images/logo.png)
On this page you find all important commands for the CLI tool ssh-keygen. If the
command you are looking for is missing please ask our AI.
ssh-keygen
ssh-keygen generates, manages and converts authentication keys for ssh(1). ssh-keygen can create keys for use by SSH protocol version 2.
List of commands for ssh-keygen:
-
ssh-keygen:tldr:0cfca ssh-keygen: Generate an RSA 4096-bit key with email as a comment.$ ssh-keygen -t ${select} -b ${4096} -C "${select1}"try on your machineexplain this command
-
ssh:key:generate Generates a new SSH key pair for authentication$ ssh-keygentry on your machineexplain this command
-
ssh:known-hosts:remove Removes a known host from the ~/.ssh/known_hosts file$ ssh-keygen -R ${hostname}try on your machineexplain this command
-
ssh:tldr:014d5 ssh: Retrieve public key from secret key.$ ssh-keygen -y -f ${~--ssh-OpenSSH_private_key}try on your machineexplain this command
-
ssh:tldr:03cb5 ssh: Generate an ed25519 key with 100 key derivation function rounds and save the key to a specific file.$ ssh-keygen -t ${ed25519} -a ${100} -f ${~--ssh-filename}try on your machineexplain this command
-
ssh:tldr:0cfca ssh: Generate an RSA 4096-bit key with email as a comment.$ ssh-keygen -t ${dsa|ecdsa|ed25519|rsa} -b ${4096} -C "${comment|email}"try on your machineexplain this command
-
ssh:tldr:1ed17 ssh: Change the type of the key format (for example from OPENSSH format to PEM), the file will be rewritten in-place.$ ssh-keygen -p -N "" -m ${PEM} -f ${~--ssh-OpenSSH_private_key}try on your machineexplain this command
-
ssh:tldr:944c0 ssh: Retrieve the fingerprint of a key in MD5 Hex.$ ssh-keygen -l -E ${md5} -f ${~--ssh-filename}try on your machineexplain this command
-
ssh:tldr:bba77 ssh: Change the password of a key.$ ssh-keygen -p -f ${~--ssh-filename}try on your machineexplain this command
-
ssl:key-command:change Change an SSH key comment$ ssh-keygen -c -C "${new_comment}" -f ${ssh_key_path}try on your machineexplain this command