-keygen -t ed25519 -C "Description for you Reference" ssh
Since github has introduced Personal Access Token (PAT) for security reasons, I find it extremely challenging to connect with github, using PAT, to maintain this blog. Github recommends PAT, however, I find SSH to be much more convenient.
The following blog post tries to support anyone who wishes to use SSH.
- Generating the public and private key (either on Linux or WSL on Windows)
Select all the defaults while creating the public key. It is recommended to define a passphrase.
- Activating ssh-agent
"$(ssh-agent -s)" eval
- Adding the key
-add ~/.ssh/id_ed25519 ssh
- Copy the key and add to Github
Copy the public key using the following command and paste into github.
~/.ssh/ed25519.pub cat
The ssh public key has to be inserted into the setting section of github
- Check if ssh connection is established github
@github.com ssh git