Password-free GitHub? YES! Learn GitHub SSH Key Setup on Mac/Linux in 5 steps! Secure your Git workflow. #GitHub #SSH #Security #DevOps

seen from Canada
seen from Lithuania

seen from Mexico
seen from Russia
seen from United States

seen from Germany

seen from United States
seen from Indonesia
seen from Türkiye
seen from United States
seen from Kazakhstan

seen from Bulgaria

seen from Bulgaria
seen from Chile

seen from Türkiye
seen from Netherlands
seen from Malaysia
seen from Hong Kong SAR China
seen from China
seen from China
Password-free GitHub? YES! Learn GitHub SSH Key Setup on Mac/Linux in 5 steps! Secure your Git workflow. #GitHub #SSH #Security #DevOps
Github SSH key Management
1. To generate a new .ssh key
Open terminal:
Step 1 : ssh-keygen -t rsa -b 4096 -C “your github email address” Hit enter
Step 2: Enter a file in which to save the key (/Users/you/.ssh/id_rsa) Press enter
Step 3: Enter your computer password twice.
2. Check the existing ssh keys:
Open terminal:
Type: ls -al ~/.ssh
If you have any of those below:
>id_dsa.pub
>id_ecdsa.pub
>id_ed25519.pub
>id_rsa.pub
3. Add your SSH key to the ssh-agent
Step 1: Ensure ssh-agent is enabled:
Terminal: $eval “$(ssh-agent -s)”
Step 2: Add SSH key to the ssh-agent
Terminal: $ ssh-add ~/.ssh/id_rsa
4. Add a new SSH key to your GitHub account
Step 1: Copy your existing SSH key:
Terminal: pbcopy < ~/.ssh/id_rsa.pub
Open your GitHub account. Then do things according to below:
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
5. Test the connection:
Terminal: ssh -T [email protected]
Step 2: Enter you computer password when it asks for it