Connecting to GitHub Using SSH

  • HTTPS (conventional way)
  • SSH
Image by Roman-Synkevych from Unsplash

Generating an SSH Key from our Command Line

$ ls -al ~/.ssh
$ ssh-keygen -t ed25519 -C “john_doe@example.com
$ ssh-keygen -t rsa -b 4096 -C “john_doe@example.com”

Adding the SSH key to the SSH agent

$ eval “$(ssh-agent -s)”
> Agent pid 59566
$ ssh-add ~/.ssh/id_ed25519
$ ssh-add ~/.ssh/id_rsa

Copying the Public SSH Key

$ cd ~/.ssh
$ ls
$ cat id_ed25519.pubor$ cat id_rsa.pub

Adding SSH key to Github Account

$ ssh -T git@github.com

Conclusion

Reference

--

--

--

A programming enthusiast. Constantly learning and unlearning.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Sexy Ideas behind Computer Network

How to Print Alphabet O in Python?

Welcome to Linux | NVIDIA Open Sources its Kernel Modules

TOP CLOUD ENGINEERING COMPANY IN MENLO PARK

XLW is on PancakeSwap

Scaling Sprites based on Screen Resolutions

Spark Streaming — the Good, the Bad and the Ugly

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anselem Odimegwu

Anselem Odimegwu

A programming enthusiast. Constantly learning and unlearning.

More from Medium

How to install code-server on cloud

GIT & GITHUB PART – 1

Forking, Cloing and Pushing on Git and Github

How do I create a service for a shell script ?