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

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

my-portfolio

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 generat

Thời sự 19h | Tin tức tổng hợp | Tin tức Việt Nam mới nhất hôm nay 25/04/2020 | TT24h
Developer Options XIAOMI Redmi 5 Plus – Allow USB Debugging
SARS-CoV-2 and Covid-19 Explained by a Virologist – Everything you want to know about Coronavirus



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.

— MORE FROM THIS SERIES —

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

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

— DEVMARKETER INSIDER —

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.

— FOLLOW ME —

Subscribe for New Releases!

Subscribe to DevMarketer Insider

Twitter –
(ask me questions!)

— 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 hello@jacurtis.com

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

Nguồn:https://hdwallpaperslovely.com/

COMMENTS

WORDPRESS: 38
  • comment-avatar

    On Linux I was able to copy the key using vi — location of your key —

  • comment-avatar

    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!

  • comment-avatar

    Thx Buddy nice helpful video

  • comment-avatar
  • comment-avatar

    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)

  • comment-avatar

    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 "your_email@example.com"
    2- $ eval "$(ssh-agent -s)"
    3- $ ssh-add ~/.ssh/id_rsa
    4- $ cat .ssh/id_rsa.pub
    5- $ ssh -T git@github.com
    6- $ git remote set-url origin git@github.com:username/your-repository.git
    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! (:

  • comment-avatar

    Amazing tutorial !!! It`s 4m, but I finally got it !!

  • comment-avatar
  • comment-avatar

    thank you sooo much!!!!

  • comment-avatar
  • comment-avatar

    THis video is amazing… thanks for ur help

  • comment-avatar

    Worked great for me. Thanks!

  • comment-avatar

    Thank You very much. It is working well!

  • comment-avatar

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

  • comment-avatar
  • comment-avatar
  • comment-avatar

    Your thumbnail is misleading, it's implying you're doing this on Ubuntu.. what a dick move!

  • comment-avatar

    This took me forever to attempt before I came across your tutorial, thank you so much!! Subscribed 🙂

  • comment-avatar

    Thanks, It's a very helpful tutorial

  • comment-avatar
  • comment-avatar

    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.

  • comment-avatar

    i just get authentication issues with github. extra process needed for high sierra and up for macs.

  • comment-avatar

    Thank you it worked like a charm

  • comment-avatar

    thanks. very nice video

  • comment-avatar

    still asking for password… ubuntu

  • comment-avatar

    Thank you! Very informative 🙂

  • comment-avatar
  • comment-avatar

    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?

  • comment-avatar

    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).

  • comment-avatar

    Thank you so much, this was very helpful!!! 5 Stars!

  • comment-avatar

    9:47 So what about linux :-s ? So unclear. Where did you get the text you inserted into add Key?

  • comment-avatar

    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 https://help.github.com/en/articles/changing-a-remotes-url#switching-remote-urls-from-https-to-ssh
    Although I didn't see this before cloning a fresh copy of my repo.

  • comment-avatar

    It says origin is not a git repository

  • comment-avatar

    That's such a great tutorial. Thank you so much!

  • comment-avatar

    $ 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?

  • comment-avatar

    toast to the gods. Great vid

  • comment-avatar

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

  • comment-avatar

    Thank you so much very helpful video solved most of my problems

  • DISQUS: