ssh-keygen -t ed25519 -C "Description for you Reference"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
eval "$(ssh-agent -s)"- Adding the key
ssh-add ~/.ssh/id_ed25519- Copy the key and add to Github
Copy the public key using the following command and paste into github.
cat ~/.ssh/ed25519.pubThe ssh public key has to be inserted into the setting section of github
- Check if ssh connection is established github
ssh git@github.com