Forrest logo
back to the ssh-keygen tool

ssh:tldr:944c0

ssh: Retrieve the fingerprint of a key in MD5 Hex.
$ ssh-keygen -l -E ${md5} -f ${~--ssh-filename}
try on your machine

The command "ssh-keygen -l -E ${md5} -f ${~--ssh-filename}" is used to generate the MD5 fingerprint of an SSH public key file.

Let's break down the command:

  • "ssh-keygen" is the command to generate and manage SSH authentication keys.

  • "-l" is an option in the ssh-keygen command to request the visualization of the fingerprint. It is used to display the fingerprint of the specified public key file.

  • "-E ${md5}" is another option in the ssh-keygen command to specify the hash algorithm used for fingerprint generation. In this case, it is set to use MD5 as the hash algorithm.

  • "-f ${~--ssh-filename}" specifies the path and filename of the public key file for which you want to generate the fingerprint. "${~--ssh-filename}" is a placeholder for the actual filename, which you need to replace with the appropriate value. The "~" tilde character is used to expand variables in this context.

To use this command, you should replace "${~--ssh-filename}" with the actual path and filename of the SSH public key file you want to generate the fingerprint for. For example, if you have a public key file called "my_key.pub" located in your home directory, you would replace "${~--ssh-filename}" with "~/my_key.pub" or "/path/to/my_key.pub".

After running this command, it will output the MD5 fingerprint of the specified SSH public key file, which can be used for various identification and authentication purposes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ssh-keygen tool