Part 6 – Adding SSH Key to GitHub [Git-ing Started with Git Series]

Do you hate typing in your username and password for GitHub everytime you make a push? Well that ends today because we are going to learn to generate an SSH key for our computer and to attach it to our GitHub account.

You can get all the code snippets here:

Coming Up:
We clone (copy) and fork projects from github to our computer.


Previous Video [Part 5]:
Next video [Part 7]: Coming Soon

Full Playlist for the “Git-ing Started with Git” Series:


Subscribe to DevMarketer Insider – A weekly (once a week) email newsletter to fans that want to know everything that is happening with DevMarketer, including announcements and articles not published on this channel. No spam ever, I promise, unsubscribe anytime.


Subscribe for New Releases!

Subscribe to DevMarketer Insider

Twitter –
(ask me questions!)


Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Email me

Thanks for all your support!

Tags: Git basics and learning git tutorial. Best tutorial git easiest tutorial git. Git on Mac, Linux, Windows. Tutorials with Alex, devmarketer


Related Posts

X.M.O 2019 New Year Tool, ADB, OPPO, MI, SAMSUNG, Fastboot, Huawei, Sideload Chack,

February 16, 2020

February 16, 2020 2

My youtube channel Subscribe all tools collection updates Tool download ADB Chack, Adb bybass, Frp bypass, Diag open, Huawei adb...

Tutorial on How to Flash Firmware Using Recovery Mode for OPPO Devices

February 29, 2020

February 29, 2020 28

Tutorial on how to use recovery mode to flash firmware for OPPO device such as Find 5, N1 and R819....

Bài 2: Cách cắt,ghép,chỉnh sửa video và sử dụng công cụ trong Adobe Premiere

March 24, 2020

March 24, 2020 22

Học Adobe Premiere Pro cc 2018 NEW cho người mới bắt đầu từ cơ bản đến nâng cao Bài 2:...

how to Asus Zenfone 2 fix stuck logo or Update official Stock rom with proof

March 19, 2020

March 19, 2020 50

how to Asus zenfone 2 ze551ml flashing firmware ,how to asus softbrick recover , how to bootloop loopp stuck recovery...

How To Use Adobe ILLUSTRATOR CC For Beginners! – 2018 Tutorial

March 25, 2020

March 25, 2020 21

Hey guys! Today I’m bringing you a video on how to learn/use adobe illustrator (Ai) CC in 2018! In this...

How To Bypass Mi Account MIUI 9 ( All Xiaomi Devices )

February 27, 2020

February 27, 2020 35

How To Bypass Mi Account Miui 9 ( All Xiaomi Devices ) ? 1. Install adb Driver Link 2. Enable...

How to reboot android into download/recovery mode using adb (without buttons)

March 6, 2020

March 6, 2020 4

In this video I will show how to reboot your android device into recovery/download mode with adb (Android Debug Bridge)...

[Hướng dẫn] Bài 1: Làm quen giao diện Adobe Premiere Pro CC 2015

May 17, 2020

May 17, 2020 38

Footage: Series hướng dẫn After Effect CC 2015 cơ bản đến nâng cao: Series hướng dẫn Premiere Pro CC 2015...

Top 20 Best Effects in After Effects

April 15, 2020

April 15, 2020 46

There are hundreds of amazing effects within After Effects. To help simplify which effects you should look at, this is...

BitShares nhằm mục đích mở rộng đổi mới blockchain, theo trang web

October 6, 2020

October 6, 2020

Sàn giao dịch phi tập trung (DEX) Tính năng chính của BitShares là trao đổi phi tập trung, nơi bạn...

How to solve device not found error in adb fastboot? |

January 31, 2020

January 31, 2020 5

If you are using adb fastboot methods for making some tasks on mobile from computer and the computer is not...

Install Android Platform Tools (adb & fastboot) on Windows

March 16, 2020

March 16, 2020 28

∆ IMPORTANT ∆ !! PLEASE READ HERE BEFORE STARTING !! ********************************************** I am not responsible for any damage caused or...

Vivo Y81 Y83 Pro Pattern Lock And Pin Lock.Hard Reset Easy Solution 2019

February 28, 2020

February 28, 2020 21

Vivo Y81 Latest Trick = Here Is File And Tool Download Link ”Free”= If Not Work pls contact me on...

Cách đổi mật khẩu wifi nhà mạng Viettel

March 8, 2020

March 8, 2020 37

Hướng dẫn đổi mật khẩu wifi của nhà mạng Viettel một cách đơn giản và dễ hiểu. Nếu có gì...

Android file transfer not working fixed on my Mac finally

February 24, 2020

February 24, 2020 47

Just taking a second stab at something I gave up on last year. Getting Android File transfer to work on...

  • I changed my password on github and the auth with ssh doesnt work anymore, what should I do add a new key and delete the old one or update the new one? If so can you link me how to do so I have trouble finding that info, thanks!

  • I don't understand, I've never created any ssh key, yet I can commit, clone and push projects into my gitlab without having to enter any password.
    I tried editing and pushing a random projects as I found this behaviour weird, but obviously it didn't let me push the project (cause it is not my project)
    Is there any way I could have linked my gitlab account to my local git without realising it? x)

  • First of all, thank you for telling us the subject in detail, explanatory, beautiful and understandable language. I would like to point out that I benefited a lot as a Windows user. However, I had to investigate some points in several places. Therefore, I have written all the necessary steps for the convenience of other Windows users one by one in this comment.

    Windows users can follow these steps via Git Bash:
    1- $ ssh-keygen -t rsa -b 4096 -C ""
    2- $ eval "$(ssh-agent -s)"
    3- $ ssh-add ~/.ssh/id_rsa
    4- $ cat .ssh/
    5- $ ssh -T
    6- $ git remote set-url origin
    7- Then make changes to any file in the repository. Afterwards follow the add and commit steps, respectively.
    8- $ git push –force origin
    **No need to add dollar symbols. It's already at the beginning of the line in Git Bash. I wrote them to avoid confusion.**

    Have an Octotastic Day! (:

  • Still the same "> Permission denied (publickey)." Went over this tutorial many times and checked for errors on my part. Did definetly not help.

  • good day ! Te random art is actually the key sir (or one of them) I'm new to this stuff (studying in school) and they talk a lot of theory and I'm testing a lot of these things on my own to learn I feel so overwhelmed. But there is a rsa key generator program you can download that shows you all the different types of keys and what they look like and I think sha 256 is like near impossible to crack. By no means can I prove this and this was like the last thing i read a while back. There is no telling how long that information is still valid. If anyone knows more please correct me. I want to know all that i can. When i first learned about the tcp handshake and (this is what I am trying to understand in depth) There were a lot of things about different Key generations that I had questions about.

  • So helpful man, thanks! I have a question, what if I have 2 github accounts, e.g enterprise and personal. Could my pc has two ssh keys stored?

  • Mine is still asking me for my username and password. Every command seemed to work fine… Any suggestions on where should I look at? Thanks in advance!

    PS: I reopen the terminal before cloning the repository I want (I ended up typing the username and password).

  • https clones will always ask for login. I had to clone my repo again using ssh after adding the key to github before I was allowed to push without credentials. I believe this issue is resolved in this guide
    Although I didn't see this before cloning a fresh copy of my repo.

  • $ eval $"(ssh-agent -s)"

    3 [main] ssh-agent 4860 child_info_fork::abort: C:Program FilesGitusrbinmsys-crypto-1.0.0.dll: Loaded to different address: parent(0x860000) != child(0x840000)

    fork: Resource temporarily unavailable

    what does it mean?

  • i had to set up a config file to make this work. I think you forgot to cover that.
    User git
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa

Leave a Reply

Your email address will not be published. Required fields are marked *