G2Labs Grzegorz Grzęda
Set up github keys
April 21, 2023
When I want to set up my new Linux environment for using my GitHub resources, I need to set up a secure key to authenticate.
I set separate key for each environmnent, minimising the possibility of breach.
Local set up
I generate a new key, using my email, by which I log in to github:
|
|
On prompt, I use the default settings, regarding file location and I don’t set up the passphrase (my computer passwords are secure enough to store those keys safely).
Next, I check if the ssh-agent
is running (example response):
If so, I add my fresh generated key to the ssh-agent
. Here, as the password file was generated with default name, I add it as so:
|
|
Adding key information to github account
I copy the content of the public part of key to clipboard (using default file name):
|
|
Next, I do:
- head to my github account
- Settings
- SSH and GPG keys
- New SSH key or Add SSH key
- In
Title
add some relevant description - Paste the key public part content from clipboard to Key area
- Click Add SSH Key
- When asked authenticate with GitHub account.
Now I can enjoy my new environment able to access my github content.