Create SSH Key
Creating an SSH key is very easy. Below is an example of how to generate an SSH key with the ssh-keygen
command.
Create SSH Key
ssh-keygen -t ed25519 -f ~/.ssh/nameofkey -N '' -C "comment goes here"
ssh-keygen -t rsa -f ~/.ssh/nameofkey -N '' -C "comment goes here"
-t option is for the type of keys to be created (ex. ed25519)
-f option is the filename and location of the keys (ex. /path/to/file
)
-N is the passphrase to be given, leave blank for no passphrase
-C enter a comment to best find keys later (ex. “github key”)
If you enjoyed or found any of the content on my site helpful, you can buy me a cup of coffee so I can continue to bring you amazing content for free!