How to setup SSH for GitHub repository

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • Book your free session with Sergii and find the perfect QA course for you: calendly.com/c...
    Interview and resume preparation with HR: calendly.com/d...
    Codemify Instagram: / codemify_
    Codemify telegram: t.me/codemifys...
    Codemify Instagram: / codemify_
    Codemify telegram: t.me/codemifys...
    Here are a few quick links to get in touch:
    1. Software Quality Assurance Course - sign up for a free lesson here - codemify.com
    2. Learn more info about Manual Testing and Automation Testing - codemify.com/blog
    Useful TH-cam playlists for you:
    ✅ More about QA Job: • About QA Job
    ✅ Our students’ reviews: • Student Reviews
    ▶️JavaScript: • JavaScript
    ▶️WDIO: • WDIO
    ▶️API TEST Automation:
    • API Test Automation
    ▶️Jira: • Jira
    Change your carrier and become an IT professional with us.
    ❗️Info about our courses and mentorship are here: codemify.com/
    ✔️ Our QA courses: Manual and Automation Testing can be found here - ​ codemify.com/c...
    ✔️ Registration form for the course - ​codemify.com/c...
    ✔️Our students: codemify.com/t...
    ✔️FAQ of QA automation: codemify.com/faq
    ✔️Follow us on Instagram :
    / codemify_
    ✔️ Get a free consultation or sign up for a course, questions about the course -
    email - support@codemify.com
    ✔️ Telegram: t.me/codemifys...
    #github #git #ssh

ความคิดเห็น • 131

  • @LuisCervantes-du2lv
    @LuisCervantes-du2lv ปีที่แล้ว +10

    Your explanation of how to install SSH into GitHub was very helpful. What a great teacher you are.

    • @Codemify
      @Codemify  ปีที่แล้ว

      Thanks a lot for the feedback :)

  • @mochi5523
    @mochi5523 หลายเดือนก่อน

    It's amazing how this still didn't work after multiple videos. Thanks for the great work, keep it up!

  • @EminoMeneko
    @EminoMeneko 2 ปีที่แล้ว +5

    This is fair enough for local usage.
    Thank you for the directions.
    Now if I got there, it is because I am following a training. I am given a VM on which I could do my work so that the instructor could see what I do. The thing is I prefer working locally, then push.
    But I am concerned with security and I want no one to mess with my repos/account when the machine is unattended. So I need a passphrase.
    I found a simpler way on Windows. It involves generating the key from GIT Gui utility. In one click the key is generated.
    Generating from CLI did not recognize the existence of any key. I don't know if it looks for a specific name or what but at least it works when GIT Gui generates the key.
    When I clone using SSH it will ask for the passphrase every time I push or pull which is what I want.
    You can also have ssh-agent enable in the current window if you still need to sync quite often. But closing the window just clears the data and the passphrase will be asked for again on a new session (up to you to repeat the ssh-agent steps or not).
    After my training ends, I can simply remove that SSH key (EDIT: I meant from GitHub. Should one even forget the key on the VM, it will become useless).

  • @johnborron1059
    @johnborron1059 7 หลายเดือนก่อน +2

    Thank you sir! You have got me half the way there. So much more complex now than when I set it up on my old computer a few years ago. I like your style

    • @Codemify
      @Codemify  7 หลายเดือนก่อน

      Glad it helped!

  • @DmytroTorop
    @DmytroTorop 6 หลายเดือนก่อน +1

    Сергій, дякую! Дуже корисно!

    • @Codemify
      @Codemify  6 หลายเดือนก่อน

      My pleasure 🙌

  • @mohammad_integry
    @mohammad_integry 2 ปีที่แล้ว +10

    The error show while adding,
    clip < ~/.ssh/id_ed25519.pub
    At line:1 char:6
    + clip < ~/.ssh/id_ed25519.pub
    + ~
    The '

  • @aborgescoutinho
    @aborgescoutinho 2 หลายเดือนก่อน +2

    Perfect video. Thank you

  • @JoseLopez-wh7xe
    @JoseLopez-wh7xe 10 หลายเดือนก่อน +1

    Great job! 🥇
    Here we need to mention that this is not a tutorial to clone a repository.

  • @halleluyahpaul3334
    @halleluyahpaul3334 2 ปีที่แล้ว +2

    wow thanks for this it saves me from two days headache 😂🤣

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      hahaha anytime 😁

  • @Smilodon_W_Lee
    @Smilodon_W_Lee ปีที่แล้ว +1

    well. that's a lot of steps and codes for a beginner. 😁 thanks for you effort. I will try this when I have time
    in meantime I am just using the Access token method it is simpler than this SSH one

  • @tor6953
    @tor6953 13 วันที่ผ่านมา +1

    Thank you

  • @028_j.raghava2
    @028_j.raghava2 5 หลายเดือนก่อน

    Thanks a lot sir very valuable information!!
    One small question where is the private key stored? when we generate key pair it actually created public key in local and we pasted the same in website what about private key?

  • @bane2256
    @bane2256 ปีที่แล้ว +2

    this was helpful. thanks

    • @Codemify
      @Codemify  ปีที่แล้ว

      My pleasure!

  • @amuslimintheusa
    @amuslimintheusa 29 วันที่ผ่านมา +1

    thank you for amazing things,. But I missing something. where did you copy the code that starts ssh ( 5:43 ) from

    • @Codemify
      @Codemify  29 วันที่ผ่านมา +1

      On 3:54 I’ve copied the command
      On 4:16 I ran it and it copied the key

    • @amuslimintheusa
      @amuslimintheusa 29 วันที่ผ่านมา +1

      @@Codemify It worked! thank you so much

    • @Codemify
      @Codemify  29 วันที่ผ่านมา

      @@amuslimintheusa My pleasure 😇

  • @yamilmsilva
    @yamilmsilva 4 หลายเดือนก่อน +1

    THANK YOU SO MUCH BUDDY !!!!!

    • @Codemify
      @Codemify  4 หลายเดือนก่อน +1

      My pleasure :)

  • @ihechukwu001
    @ihechukwu001 4 หลายเดือนก่อน +1

    Thank you very much boss

  • @bluedot2989
    @bluedot2989 10 หลายเดือนก่อน +1

    I am little bit lost here. Where did you copy your SSH key from before paste it in the new SSH KEY input field?

    • @Codemify
      @Codemify  10 หลายเดือนก่อน

      On 3:54 I’ve copied the command
      On 4:16 I ran it and it copied the key
      Please rewatch 🥂

  • @priyanshubisht8326
    @priyanshubisht8326 10 หลายเดือนก่อน +1

    5:33 from where did you copy this ssh key ..

    • @Codemify
      @Codemify  10 หลายเดือนก่อน

      On 3:54 I’ve copied the command
      On 4:16 I ran it and it copied the key
      Please rewatch 🥂

  • @realnathanlartiste
    @realnathanlartiste 11 หลายเดือนก่อน +1

    This video helped me !

    • @Codemify
      @Codemify  11 หลายเดือนก่อน

      Thank you for the feedback! It’s a pleasure to help others 🙌🏼😎

  • @aqibsaeed3229
    @aqibsaeed3229 ปีที่แล้ว +1

    It helped me. Thanks alot :))

    • @Codemify
      @Codemify  ปีที่แล้ว

      My greatest pleasure!

  • @bodnarsa
    @bodnarsa 8 หลายเดือนก่อน +1

    If I generated an SSH key on my Windows machine, how to use it on my Linux machine? Should I generate another key for Linux machine?

    • @Codemify
      @Codemify  8 หลายเดือนก่อน

      It would be easier just to generate it directly on linux machine, than to move it around from machine to machine

    • @bodnarsa
      @bodnarsa 8 หลายเดือนก่อน +1

      Thank you for your help.@@Codemify

    • @Codemify
      @Codemify  8 หลายเดือนก่อน

      My greatst pleasure - @@bodnarsa

  • @aadil4236
    @aadil4236 ปีที่แล้ว +1

    Thank you brother!

    • @Codemify
      @Codemify  ปีที่แล้ว

      My greatest pleasure!

    • @aadil4236
      @aadil4236 ปีที่แล้ว

      I have ssh keys on my windows and Ubuntu environment. I also want install it on my Kali environment. I follow the exact procedure but I am not able to clone with ssh in Kali. Any suggestion would be helpful. Thank you!!

  • @DAVIDALYAHIRRADILLOROJAS
    @DAVIDALYAHIRRADILLOROJAS 8 หลายเดือนก่อน

    I followed every step, but when I tried to finally add the ssh key, ii couldn't, the message that appeared was " Key is invalid. You must supply a key in OpenSSH public key format"

    • @Codemify
      @Codemify  8 หลายเดือนก่อน

      You probably did not copy the right key. Please follow the video again

  • @tseringdhondup77
    @tseringdhondup77 2 ปีที่แล้ว +2

    thanks for the video

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      My pleasure!

  • @rikoflishas
    @rikoflishas 5 หลายเดือนก่อน

    mmm not working. it always sends me 'warning: You appear to have cloned an empty repository' or 'fatal: destination path 'test' already exists and is not an empty directory. 'after doing the git clone code. I'm very new to this so I don't get it. I check the folder and it is empty. Thank you very much to anyone that can help me

    • @Codemify
      @Codemify  5 หลายเดือนก่อน +1

      That issue is related to your repo, not to ssh

  • @benmoyal6107
    @benmoyal6107 9 หลายเดือนก่อน +1

    awesome!

  • @ENTERTAINMENTMEDIA37
    @ENTERTAINMENTMEDIA37 ปีที่แล้ว +1

    Thankyou

    • @Codemify
      @Codemify  ปีที่แล้ว +1

      My pleasure 🙌🏼

  • @simranvedpathak7112
    @simranvedpathak7112 6 หลายเดือนก่อน +1

    Thank you...

  • @prasanthsikakollu9328
    @prasanthsikakollu9328 ปีที่แล้ว

    I have created a ssh key pair and added public one into the github account. But when I run git commands, it still asks for the username/password. How to fix that?
    Do I need to run any additional commands after cloning?

    • @Codemify
      @Codemify  ปีที่แล้ว

      git remote set-url origin git@github.com:username/repo.git
      This command will change it to ssh.
      Replace username/repo.git with the path to your repository (you can get this from the main page of your repository on GitHub).
      Let me know if it works ;)

  • @charlesfotie8287
    @charlesfotie8287 ปีที่แล้ว

    Thank you for this Vidéo!

    • @Codemify
      @Codemify  ปีที่แล้ว

      My greatest pleasure!

  • @amirmohammadi2012
    @amirmohammadi2012 ปีที่แล้ว +1

    i gave you a big dislike because you waste 1:17 my time at the first.

  • @CodyDaleOP
    @CodyDaleOP หลายเดือนก่อน

    video is all over the place, worst video ever, i guess i wont have git hub set up, yay! and also i probably dont need it set up.

    • @Codemify
      @Codemify  หลายเดือนก่อน

      I absolutely agree with you 😹

  • @GabrielLuccaMarsola
    @GabrielLuccaMarsola 4 หลายเดือนก่อน +1

    Very helpful your explanation on how to install the SSH in Github. Thank you so much! By the way, you teach and also explain things pretty well!

  • @zouhairsahtout9682
    @zouhairsahtout9682 7 หลายเดือนก่อน +2

    I always get back to this video, thank you so much

    • @Codemify
      @Codemify  7 หลายเดือนก่อน +1

      My greatest pleasure!

  • @bayarmaamail1800
    @bayarmaamail1800 ปีที่แล้ว +2

    It really works, thank you so much😀.

    • @Codemify
      @Codemify  ปีที่แล้ว

      My greatest pleasure :)

  • @olga_lc
    @olga_lc ปีที่แล้ว +1

    Hi! So if I already have an ssh generated for Gitlab, the same one should be used for GitHub as well? How often should we change them? Thanks

    • @Codemify
      @Codemify  ปีที่แล้ว +1

      Good questions!
      1. I've never used Gitlab and Github simultaneously but I see no reason why it would not work. You generate one key for two different doors(same locks)
      2. Generally, you don't need to change them if they have not been compromised

    • @olga_lc
      @olga_lc ปีที่แล้ว +1

      @@Codemify thanks for the quick response. Yeah I just added my existing ssh into Github account and it works for both. I haven't really had the problem connecting and pushing to github repo with the commands they give you when you create one, until today.

    • @Codemify
      @Codemify  ปีที่แล้ว +1

      @@olga_lc Yeyyy!!!
      Great job! You've just successfully tested our theory 🤔
      It's a pleasure to collaborate and help likeminded people!

  • @samirkha
    @samirkha ปีที่แล้ว +1

    This video is really helpful. Thanks now I understand all.

    • @Codemify
      @Codemify  ปีที่แล้ว

      My greatest pleasure!

  • @dorian3017
    @dorian3017 ปีที่แล้ว +2

    Great tutorial 👍! Just what I needed, thank you!

    • @Codemify
      @Codemify  ปีที่แล้ว +1

      My greatest pleasure!

    • @developerninja619
      @developerninja619 ปีที่แล้ว

      @@Codemify hello and thank you for your video! Could you please tell why didn't you add the ssh key to the ssh-agent? Isn't it necessary??

    • @Codemify
      @Codemify  ปีที่แล้ว

      @@developerninja619Nope, it's not as you can see

  • @ort.school
    @ort.school 7 หลายเดือนก่อน +1

    the best and calmest

  • @timmyhiggins5220
    @timmyhiggins5220 2 ปีที่แล้ว +6

    this is so confusing, 30 minutes later I'm still confused. The copy and pasting of keys needs to be explained better

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      If you are on the Mac, you run a command that copies the key to the keyboard. Then you simply Command-V to paste it or right click and paste!

    • @timmyhiggins5220
      @timmyhiggins5220 2 ปีที่แล้ว +1

      @@Codemify I dont mean how to copy and paste. I mean you dont explain the copy and paste of the key correctly. You are copying the generated key, then another shorter key you copied from the instructions. You dont explain about joining them together to form a full key, if that is what your doing 🤷‍♂️. I still dont even know because it's so confusing.

    • @Codemify
      @Codemify  2 ปีที่แล้ว +1

      @@timmyhiggins5220 What short key are you talking about?
      You don't need to join anything. You generate a key, copy it, and add it to your github account. Let me know if it doesn't work

    • @Codemify
      @Codemify  2 ปีที่แล้ว +1

      ​@The Big TunaOh, thanks for the clarification. You did copy it from terminal a minute ago right here th-cam.com/video/snCP3c7wXw0/w-d-xo.html

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      @@timmyhiggins5220 Is that's what you've asked about? th-cam.com/video/snCP3c7wXw0/w-d-xo.html

  • @izzuddinsuib431
    @izzuddinsuib431 7 หลายเดือนก่อน +1

    Nice video! really helpful

    • @Codemify
      @Codemify  7 หลายเดือนก่อน

      Glad it was helpful!

  • @VulcanOnWheels
    @VulcanOnWheels 3 หลายเดือนก่อน

    For about half of your video, all you do is follow some instructions on a web page.

    • @Codemify
      @Codemify  3 หลายเดือนก่อน +1

      That is correct :)

    • @VulcanOnWheels
      @VulcanOnWheels 3 หลายเดือนก่อน +1

      @@Codemify My earlier comment notwithstanding, your video did help me understand "how to setup SSH for" my GitHub account. Thank you!

    • @Codemify
      @Codemify  3 หลายเดือนก่อน

      @@VulcanOnWheels My pleasure, and I'm glad it was helpful!

  • @serhysukhomudrenko5453
    @serhysukhomudrenko5453 2 ปีที่แล้ว +3

    Дякую тезко

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      Що ти маєш на увазі?

    • @tjorven9645
      @tjorven9645 2 ปีที่แล้ว +1

      @@Codemify він має на увазі, що вас звати Сергій як і його

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      @@tjorven9645 Туплю) Давно не чув слово тезко) Дякую, друже!

  • @backtobackcosmicflash
    @backtobackcosmicflash ปีที่แล้ว

    the github documentation no more gives you 'pbcopy' command, it gives you some 'clip' command and it doesn't work for you. i'm lacking the syntax.

    • @Codemify
      @Codemify  ปีที่แล้ว

      You might be looking into different pages. Here is the one docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

  • @hissaanali5860
    @hissaanali5860 ปีที่แล้ว +1

    Thank you that was really helpful

    • @Codemify
      @Codemify  ปีที่แล้ว

      My pleasure 💪

  • @chrisobrienweb
    @chrisobrienweb 8 หลายเดือนก่อน +1

    Just what I needed. Thanks!

    • @Codemify
      @Codemify  8 หลายเดือนก่อน

      My greatest pleasure!

  • @gold-junge91
    @gold-junge91 ปีที่แล้ว +1

    How can I manage keys

    • @Codemify
      @Codemify  ปีที่แล้ว

      This is a good topic to record another video

  • @oliviareilly
    @oliviareilly 2 ปีที่แล้ว

    confused where you got the webprojects folder... what does that correspond to? I am not starting off with any folder.

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      Which second of the video are you talking about?

  • @rupeshcb9260
    @rupeshcb9260 ปีที่แล้ว +1

    Thank You bro ❤

    • @Codemify
      @Codemify  ปีที่แล้ว +1

      My greatest pleasure!

  • @Phaminh-Cinematography
    @Phaminh-Cinematography ปีที่แล้ว +1

    pretty clear explanation

    • @Codemify
      @Codemify  ปีที่แล้ว

      Thank you for the feedback!
      Glad it was helpful!

  • @ishworgautam3063
    @ishworgautam3063 ปีที่แล้ว +1

    thanks man

    • @Codemify
      @Codemify  ปีที่แล้ว

      My greatest pleasure!

  • @JMinatsuki6215
    @JMinatsuki6215 ปีที่แล้ว

    how does this looks so easy here... but when I do it it is full of error 😢

    • @Codemify
      @Codemify  11 หลายเดือนก่อน

      Good question. Most likely different env

  • @gauthamraj6120
    @gauthamraj6120 ปีที่แล้ว +1

    Thankyou so much very clear. able to understand very quick.

    • @Codemify
      @Codemify  ปีที่แล้ว

      My pleasure

    • @gauthamraj6120
      @gauthamraj6120 ปีที่แล้ว +1

      Hi I'm having an issue when I'm cloning the GitHub repository to the ubuntu dedicated server. When I use git clone url I'm getting bad configuration at ssh_conff file at line 54... Please let me know if you have any videos on that..

    • @Codemify
      @Codemify  ปีที่แล้ว

      @@gauthamraj6120 This is a very specific error that would require more details. Seems like you didn't setup ssh properly on your server

    • @gauthamraj6120
      @gauthamraj6120 ปีที่แล้ว +1

      @@Codemify yes, if there is any tutorial you could suggest please share it. Or any blog.

    • @Codemify
      @Codemify  ปีที่แล้ว

      @@gauthamraj6120 I don't think there is a tutorial that will explain that specific problem. Try to reset all you ssh settings from scratch

  • @davidadediji3354
    @davidadediji3354 2 ปีที่แล้ว +4

    clear and concise explanation

    • @Codemify
      @Codemify  2 ปีที่แล้ว

      Thank you for the feedback, David!

  • @AzeamDildar
    @AzeamDildar ปีที่แล้ว

    Bro y didn’t u use eval cod?

    • @Codemify
      @Codemify  ปีที่แล้ว

      I don't like cod bro, I prefer tuna

    • @AzeamDildar
      @AzeamDildar ปีที่แล้ว

      @@Codemify ok fair enough! Y didn't u use eval tuna?

    • @Codemify
      @Codemify  ปีที่แล้ว

      @@AzeamDildar haha you could use either way you like. The end result is the same

  • @jimb5051
    @jimb5051 3 วันที่ผ่านมา

    1:37 totally lost. cant find the page he is on? I will try other videos.

  • @austinjnr7115
    @austinjnr7115 ปีที่แล้ว +1

    thank you so much

    • @Codemify
      @Codemify  ปีที่แล้ว +1

      My greatest pleasure :)