
Next check the content of known_hosts file # cat.


In this example I am creating key pair of ED25519 typeīy default ssh-keygen generates SSH key with 2048 bit size.Use -t argument to define the type of the key.You can create key with dsa, ecdsa, ed25519, or rsa type.By default ssh-keygen will create RSA type key.Snippet from my terminal Generate SSH Key without any arguments Next provided the passphrase, you can just press ENTER to create passphrase less key pair.The default naming syntax used for the private RSA key will be id_rsa and public key will be id_rsa.pub.

The tool will create ~/.ssh if the directory does not exists already.The default location would be inside user's home folder under.The tool will prompt for the location to store the RSA key pairs.You can execute ssh-keygen without any arguments which will generate key pairs by default using RSA algorithm.Let us explore the ssh-keygen tool to generate different types of key pairs in Linuxġ. ALSO READ: Capture ssh & sshd strace logs
