public ssh key code example
Example 1: ssh get key
cat ~/.ssh/id_ed25519.pub
Example 2: get public ssh key
ssh-keygen
cat ~/.ssh/id_rsa.pub
Example 3: what is role of public key in ssh
A public key that is copied to the SSH server(s).
Anyone with a copy of the public key can encrypt data which
can then only be read by the person who holds the corresponding private
key.