# print the art from an existing public keyssh-keygen-lv-Esha256-f $HOME/.ssh/your-file-name.pub
# 1. generate the public key from the private key
# 2. pipe the result to generate the fingerprint from the public key.
ssh-keygen -y -f $HOME/.ssh/github_pz | ssh-keygen -l -f -
# generate a fingerprint from the public key file
ssh-keygen -l -f github_pz.pub
Overview
The manpage for ssh-keygen describes ssh 1 generally as legacy, suffering from cryptographic weaknesses, and lacking support for the new features in protocol 2.
ssh-keygen generates, manages, and converts authentication keys for ssh 1 and ssh 2. Creating a key is pretty simple. The following command guides you through naming and password-protecting the files:
ssh-keygen allows you to create a fingerprint from both the privateandpublic keys.
ssh-keygen allows you to create a fingerprint from both the private** and **public keys.
Prove Two Two Key Files Are a Cryptographic Key Pair
The execution below shows how a private key and public key lead to the same fingerprint. This can be used to prove two files belong to the same key pair.
# 1. generate the public key from the private key, # 2. pipe the result to generate the fingerashprint from the public key.ssh-keygen-y-f $HOME/.ssh/github_pz|ssh-keygen-l-f-# 3. generate a fingerprint from the public key filessh-keygen-l-fgithub_pz.pub
More on SSH configs, checking signatures, etc. here.
*technically, a fingerprint is derived from a public key