| Date and time note was created | $= dv.current().file.ctime |
| Date and time note was modified | $= dv.current().file.mtime |
Related : Computer Networks, Github SSH
Q. What the hell is SSH? ⇒ See SSH.
Steps to create SSH key :
-
First we need to check if we have a SSH key already generated for the system/local machine,we want to get authenticated or not.1
Steps to check for SSH
- Open terminal
ls -al ~/.ssh // lists if anything exists in the ssh folder- public keys maybe of the following names : - id_rsa.pub - id_ecdsa.pub - id_ed25519.pub If present use that public key otherwise generate new key.
-
Steps to generate new key if it doesn't exists
- Open Terminal
ssh-keygen -t ed25519 -C "complete_email_id"- ed25519 is algorithm used for generating the key-pair - t flag : used to select the algorithm - C flag: used for commenting for the key. Example :ssh-keygen -t ed25519 -C 23prakhargarg2002@gmail.comIf a file already exists then you can use a custom name for the file
-
Add the generated ssh public to GitHub using the following steps
- Open GitHub settings.
- Go to SSH and GPG keys
- Click New SSH key or Add SSH key.
- Name the SSH key using title
- Now on your personal computer get the content of public key you generated
cat ~/.ssh/id_ed25519.puband copy the output. - Paste the content in the blank field provided on GitHub new ssh key area and press add key.
- You can test the connection by using the following command.2
ssh -T git@github.com
Further things to explore attaching the hardware key to authenticate to github. Generating a new SSH key for hardware
References::
Foot-notes::