Authenticating on multiple GitHub accounts using SSH

Поділитися
Вставка
  • Опубліковано 5 вер 2024

КОМЕНТАРІ • 212

  • @kristoftorma8390
    @kristoftorma8390 3 роки тому +3

    Köszönjük!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Thanks Kristóf! 😍😍 glad was helpful. Cheers Mark

  • @brettm9
    @brettm9 3 роки тому +12

    This is the only tutorial that is clear, concise, and works!!!!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Thanks Brett - glad it was helpful :-)

  • @amolshirole2639
    @amolshirole2639 3 роки тому +7

    Thanks Sir, I am stuck with this problem for the last 8 months. This is really awesome, thanks again to solve my issue.

    • @Ashotofcode
      @Ashotofcode  3 роки тому +1

      Excellent, glad it helped Amol 😎

  • @arlivahi7225
    @arlivahi7225 3 роки тому +3

    Watched 2x speed, skipped Key gen parts. Very good and on point information. I can see that this was prepared beforehand. Solved my problem of assigning multiple SSH keys to the same repo in Git Lab.

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Nice glad it was useful Arli😀

  • @linonator
    @linonator 2 роки тому +1

    I’ve searched on google for weeks and failed to find clear instructions on how to accomplish this. (I could just be an idiot lol). But you sir have saved my life! This video 100% worked for me! Thanks a lot

  • @ehehehehz
    @ehehehehz 2 роки тому +3

    It is so good to find the exact solution to your problem, with clear steps and on top of that it works! Saved me from a tutorial and documentation hell. Thank you a lot! Great video!

  • @CompuB1t
    @CompuB1t 2 роки тому +1

    Two days to understand this concept and make commits from different accounts to GitHub without login and logout, again and again. Finally I understand thanks. My last error was with the host.

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Excellent! glad it helped out, Cheers Mark

  • @jonmultimedia
    @jonmultimedia 2 роки тому +2

    After hours of searching, this saved my ass. Wtf, why couldn't they make it easier to have multiple keys for multiple accounts....Thanks a lot man.

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      Cool glad it helped Daniel! :-) Cheers Mark

  • @juhandvan
    @juhandvan 2 роки тому +3

    This is concise and simplest tutorial that I have seen. Thank so much !!!

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Glad it was helpful! Thanks Juhand 😀

  • @HakobAndreasyan
    @HakobAndreasyan Рік тому +1

    The only useful video to Authenticating multiple GitHub accounts using SSH all over the internet 👌👌👌👌

    • @Ashotofcode
      @Ashotofcode  Рік тому +1

      cool, thanks Hakob, Cheers Mark 🙂

  • @lucianovitetti4452
    @lucianovitetti4452 3 роки тому +3

    This was exactly what I needed to have different keys for different AWS accounts!! Thank you very much!!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      You're very welcome Luciano! Cheers Mark

  • @ProglabsOfficial
    @ProglabsOfficial 2 роки тому

    This is the only guy who explained everything very clearly.

  • @Geraldaga
    @Geraldaga Рік тому +1

    Without writing a long paragraph of how much this help, I'll simply say, Thank you!

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Thanks Geraldaga - glad it helped out 🙂Cheers Mark

  • @creativemember
    @creativemember 11 місяців тому +1

    Thanks! for some reason my second ssh key didn't work, you helped me solve the issue.

    • @Ashotofcode
      @Ashotofcode  11 місяців тому

      Glad I could help! Cheers Mark

  • @lechkuznecov282
    @lechkuznecov282 3 роки тому +1

    I don't know, who clicked dislike, but this HELPED ME A LOT, and saved my time. . .

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Thanks Lech - glad it helped out :-) Cheers Mark

  • @tomfogle8173
    @tomfogle8173 3 роки тому +2

    God friggin bless you sir. This was driving me nuts.

    • @Ashotofcode
      @Ashotofcode  3 роки тому +1

      Cheers Tom, glad it helped :-)

  • @agostinho.teclas
    @agostinho.teclas 3 роки тому +2

    World needs to know your channel

  • @johnson554671
    @johnson554671 3 роки тому +1

    This is a very helpful video. I am in a situation at work where we have multiple development PC's that different engineers/programmers connect to and we are using SSH to push/pull/clone from github on the same persons account right now. Ideally, I would like to make a bash startup script that when the user opens the bash shell it prompts them for which user to log in as and asks for their password. After logged in, it will stay logged in and use their key and set their global user.name and user.email during the session until the window is closed and everything resets at next bash shell startup. This video is a very helpful step in that process. Thanks.

  • @rhymekidstv
    @rhymekidstv 2 роки тому +1

    This video must be protected. It’s so important. Thank you mate

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Cool thanks! glad it was helpful :-)

  • @talkohavy
    @talkohavy 2 роки тому +1

    You are my new god!
    Thank you sir :) Very helpful. I was just about to give up.

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      You are welcome Tal 🙂 Cheers Mark

  • @juanibevilacqua4658
    @juanibevilacqua4658 Рік тому +1

    Awesome video! Really helpful! Thanks for taking the time to record, edit and upload it!

  • @lefxxwill7740
    @lefxxwill7740 2 роки тому +1

    worked like a charm for me! Thank you!

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Glad it helped! 🙂Cheers Mark

  • @SagarKoshti-wc7fj
    @SagarKoshti-wc7fj Рік тому +1

    Thank you so much. it's helps me a lot by watching your video.

  • @llewellynross
    @llewellynross Рік тому +1

    Fantastic video mate, thank you! Though I did get stuck for an hour as I'd previously set up an ssh-agent that was bypassing the config file. Had to run 'ssh-add -l' to show the agents, then 'ssh-add -D' to delete them all. Careful with this though as it's not undoable!

  • @thirumaniraj5988
    @thirumaniraj5988 8 місяців тому +1

    Thanks a lot for the exact solution which I am looking for!!

  • @rusted.dreams
    @rusted.dreams Рік тому +2

    thanks, man! it was really beneficial.

  • @ithacks4921
    @ithacks4921 3 роки тому +2

    Very Nice. Was really looking to this help. Thanks a lot

  • @magic_pink_horse
    @magic_pink_horse Рік тому +1

    Thanks very much for the tutorial! Been honestly lazy with learning ssh authentication but you made it look very easy and it actually turned out to be easy :)

    • @Ashotofcode
      @Ashotofcode  Рік тому +1

      Glad it helped! Cheers Mark 🙂

  • @Shnigi
    @Shnigi 2 роки тому +1

    Exactly what I was looking for! Thanks.

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Great to hear Shnigi 🙂 Cheers Mark

  • @SylvStone
    @SylvStone 3 роки тому +3

    It's not worked for me. This is not a proper more-than-2-GitHub-accounts case. The second repo in the video is still in the personal acc (okay, with a different ssh-key). I followed instructions and the output I got reads "Bad owner or permissions on ~/.ssh/config. Fatal: Could not read from remote repository".
    What about the remote URL set on the repo/.git/config?. I had it set as a --local HTTPS repo and trying to change to SSH sync but unsuccessful. I miss info.. /..\

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Sorry Sylver - hope you found the info you need from somewhere. Cheers Mark

    • @amanagarwal6897
      @amanagarwal6897 3 роки тому

      I am having the exact same issue for my work account

  • @MrDimonsky
    @MrDimonsky 3 роки тому +1

    KeePass has a plugin, allows not to keep all keys on HDD. also works fine for multiple ssh accounts.

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Nice that will give some extra security for sure - thanks for the heads up will take a peek I reckon :-)

  • @ststeve499
    @ststeve499 3 роки тому +2

    Straight forward tutorial!! I just subscribed

    • @Ashotofcode
      @Ashotofcode  3 роки тому +1

      Nice glad it was useful :-) and thanks for the sub!

  • @yangliu3754
    @yangliu3754 3 роки тому +2

    thank you so much for helping solving my problem! You're awesome!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Thanks Yang glad it was helpful :-)

  • @frostydog860
    @frostydog860 Рік тому

    Thank you for creating this! Very helpful! :)

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Cool glad it was helpful! cheers Mark

  • @DKYtut
    @DKYtut 2 роки тому +1

    Hi I did the SSH Keys thing, but the problem is, when I clone it ,commit and push, it is 'build' and pushed by the other account(?)
    So I made a repository/project with account 1, and want to push with account 1 but it pushed with account 2 instead.

  • @herlambangharyo3873
    @herlambangharyo3873 2 роки тому +1

    Thank you, Sir. Helpful video

  • @nathanellis7819
    @nathanellis7819 2 роки тому +1

    THANK YOU!! This was driving me insane! Thank you

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      You're welcome! glad it helped 🙂Cheers Mark

  • @heyydev_1
    @heyydev_1 Рік тому +1

    Amazing explanation! pretty clear

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Glad you think so Santiago! Thanks Mark

  • @ramdaneoualitsen1323
    @ramdaneoualitsen1323 2 роки тому +1

    That was a great presentation and helped me a lot. Thank you very much

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Glad it was helpful Ramdane 🙂Cheers Mark

  • @gopinathkrm58
    @gopinathkrm58 Рік тому +1

    This was very helpful. Thanks

  • @ginnerzapata5909
    @ginnerzapata5909 2 роки тому +1

    thanks a lot man! i had been struggling with this.

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      No problem! 🙂 Glad was helpful - Cheers Mark

  • @vadymbarabanov156
    @vadymbarabanov156 3 роки тому +1

    Superb video. Great job. Thank you
    👍

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Thank you too Vadim, glad was useful :-)

  • @ayushdubey8745
    @ayushdubey8745 3 роки тому +1

    learnt a lot from this thanks... served the purpose

  • @anandnkhl
    @anandnkhl 2 роки тому +1

    Thank you for this solution!

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Glad it helped Nikhil 🙂Cheers Mark

  • @tamasnagy1963
    @tamasnagy1963 Рік тому +1

    You are the best, thank you!🤘

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Cool glad it helped out 🙂Cheers Mark

  • @mehmety5012
    @mehmety5012 2 роки тому +1

    Thanks a lot ! Great tutorial...

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      All good, glad was useful Mehmet, cheers Mark 😀

  • @maxifittipaldi9843
    @maxifittipaldi9843 3 роки тому +1

    Thanks for the information!

  • @agostinho.teclas
    @agostinho.teclas 3 роки тому +2

    You saved my work. Thanks a lot

  • @atharvawaze5662
    @atharvawaze5662 3 роки тому +1

    Thank you sir for this video. It helped me so much!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Glad to hear that Atharva :-) Cheers Mark

  • @manikantrai7384
    @manikantrai7384 2 роки тому +1

    This was really really very helpful. Thanks a lot😄

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      You're welcome Manikant 😊 Cheers Mark

  • @philipoakley5498
    @philipoakley5498 2 роки тому

    Excellent.
    Just need one on configuring the 'git send-email' SMTP authentication password for projects working on a patch flow basis.

  • @carlosperezaquino39
    @carlosperezaquino39 3 роки тому +1

    Thanks a lot! very helpful

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      You're welcome Carlos :-) Cheers Mark

  • @faridul.hassan
    @faridul.hassan 2 роки тому +1

    Great, man. You saved me :)

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      You're welcome Faridul :-) Cheers Mark

  • @skrockybulhasanrasel3920
    @skrockybulhasanrasel3920 2 роки тому +1

    you save my time, thank you

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Glad it helped! 😀Cheers Mark

  • @aymoon1411
    @aymoon1411 3 роки тому +1

    thanks man it was very helpful

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Glad it helped Ayman :-) Cheers Mark

  • @jonacast
    @jonacast 3 роки тому +1

    ¡Muchas gracias! Me ayudó mucho. No hay tutoriales en español de esta parte.

  • @danishmohammad3793
    @danishmohammad3793 3 роки тому

    real helpful and to the point

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Cool glad was useful Danish 🙂Cheers Mark

  • @onas182
    @onas182 2 роки тому +1

    you saved my life Thanks

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Excellent, glad you found useful Onas 🙂 Cheers Mark

  • @DeepakKumar-by5vf
    @DeepakKumar-by5vf 2 роки тому +1

    Thank you so much sir , Its saved me a lot of trouble.

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      Glad to hear that Deepak :-) Cheers Mark

  • @arshahmad6492
    @arshahmad6492 Рік тому +1

    Thanks for the help.

    • @Ashotofcode
      @Ashotofcode  Рік тому

      cool glad it was useful 🙂Cheers Mark

  • @prasenjit1110
    @prasenjit1110 Рік тому +1

    Thanks: Its great tutorial

  • @javascript_developer
    @javascript_developer Рік тому +1

    very useful thanks.

    • @Ashotofcode
      @Ashotofcode  Рік тому +1

      You are welcome Santosh. Cheers Mark

  • @malikov_722
    @malikov_722 6 місяців тому +2

    thank you very much

  • @dory473
    @dory473 3 роки тому

    Thanks for your work! It helped me a lot.

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Glad to hear that Dory :-) Cheers Mark

  • @vinaydavda4813
    @vinaydavda4813 2 роки тому +1

    I did it ! Thanks Man !

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      Nice! glad it helped Vinay 😁 Cheers Mark

  • @alexlodeon7143
    @alexlodeon7143 2 роки тому +1

    thanks a lot bro! good video

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Glad you found useful Alex 🙂Cheers Mark

  • @nishantpatill
    @nishantpatill 2 роки тому +1

    Easiest solution.

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      Thanks Nishant, glad it was helpful, cheers Mark 😀

  • @bobdpa
    @bobdpa 2 роки тому +1

    Awesome! Thanks!

  • @tanveerasif5978
    @tanveerasif5978 Рік тому +1

    Thanks. It helps me.

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Glad to hear that! Cheers Mark 🙂

  • @deepakprajapati5064
    @deepakprajapati5064 2 роки тому +1

    thanks man, It's working

    • @Ashotofcode
      @Ashotofcode  2 роки тому +1

      You're welcome Deepak 🙂Cheers Mark

  • @amoghmishra9222
    @amoghmishra9222 Рік тому +1

    saved my day

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Cool! - glad it was helpful - Cheers Mark 🙂

  • @christopherberrios2694
    @christopherberrios2694 2 роки тому +1

    Thank you so much!!!

  • @ArunKarthikgayan
    @ArunKarthikgayan 2 роки тому

    I've create public key and added in windows server and able to clone, but when the windows service runs it fails for Host key authentication failed. what is wrong for same batch file? please suggest

  • @gusentediado
    @gusentediado 2 роки тому +1

    Great video! Should I always change the clone link to match with my host in my config file?

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Thanks Gustavo glad you liked it - been too long afraid for me to recall though - Cheers Mark

  • @aminehmidouche6731
    @aminehmidouche6731 3 роки тому +1

    you are awesome thank you

  • @miguelcsang
    @miguelcsang 3 роки тому +1

    Perfect! thank you so much.

  • @DanKardell
    @DanKardell 2 роки тому +1

    Great job! What is known_hosts used for then

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Thanks Dan - been too long for me to recall afraid 🙂Cheers Mark

  • @thilina.p
    @thilina.p 2 роки тому +1

    Thanks in advance!

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      Welcome Thilina 🙂 Cheers Mark

  • @KonigKlack
    @KonigKlack Рік тому

    If I create a new local repo, how can I add the origin and use the correct SSH key?

  • @sharhanalhassan7352
    @sharhanalhassan7352 2 роки тому

    Is there a way to permanently set the remote host or I have to modify the host anytime I'm cloning a new repository

  • @himachal8252
    @himachal8252 3 роки тому +2

    👏 Saved the day

    • @Ashotofcode
      @Ashotofcode  3 роки тому +1

      Thanks Himachal glad it was of use :-)

  • @nguyenthehoang9148
    @nguyenthehoang9148 2 роки тому

    cd .ssh shows no such directory in my PC. Do I just need to create one or it is a problem?
    Thanks!

  • @mitaka_78
    @mitaka_78 Рік тому +1

    Thank you!

    • @Ashotofcode
      @Ashotofcode  Рік тому

      Cool, glad it was useful, cheers Mark 🙂

  • @userbilas
    @userbilas 3 роки тому +1

    Thanks a lot!) That was useful!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      You're welcome Artem - Cheers Mark

  • @CodtachiYoutube
    @CodtachiYoutube 3 роки тому +1

    Great Tutorial man

  • @mydearest1000
    @mydearest1000 3 роки тому +2

    really helpful, thanks. one question: can we set different user.email and user.name for different accounts when push commits to remote, for now I can only set the git user.email for every repository separately, otherwise, it'll use the global configured git user.email.

    • @Ashotofcode
      @Ashotofcode  3 роки тому +2

      hiya - good question, setting the user email and name in the local config for each repository is the only way I'm aware too though afraid :-( cheers Mark

    • @geekydanish5990
      @geekydanish5990 2 роки тому +1

      In my case i have written a custom zsh script that updates the local git config (user,username,email)

  • @creativegroup6953
    @creativegroup6953 3 роки тому +1

    this is so cool

  • @rhymekidstv
    @rhymekidstv 2 роки тому +1

    Subscribed

  • @ahmedmagdy-qg3tb
    @ahmedmagdy-qg3tb Рік тому +2

    on Linux i needed to `ssh-add `

    • @Ashotofcode
      @Ashotofcode  Рік тому +1

      Thanks - Glad was interesting. Cheers Mark

  • @DivyamAzad
    @DivyamAzad 2 роки тому

    Works on Linux also thankyou.

  • @md.jubairahmed4097
    @md.jubairahmed4097 Рік тому +1

    Thanks man

  • @natashasimone1931
    @natashasimone1931 3 роки тому +1

    Great stuff :-D!!

  • @Goodlu85
    @Goodlu85 Рік тому +1

    Thanks !

  • @Furkan-mw7kw
    @Furkan-mw7kw Рік тому +1

    thenk you 😇

  • @singhdev7999
    @singhdev7999 3 роки тому +1

    Hi, I would need to try single deploy key to be added on multiple repository.. is this possible? Please help me out

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Hi Shubham, I'm afraid not no, Github will check if the key is used on another repository and deny this.

    • @singhdev7999
      @singhdev7999 3 роки тому

      @@Ashotofcode Thank you so much :) appreciate your quick response generally nobody respond to such questions:) thank you again bro!

  • @ajinkyadeshpande9048
    @ajinkyadeshpande9048 3 роки тому +1

    AWESOME!!!!!!!!!!!!!!

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Thanks Ajinkya, glad it helped out :-)

  • @khujibangladesh9913
    @khujibangladesh9913 2 роки тому

    Thank you

    • @Ashotofcode
      @Ashotofcode  2 роки тому

      You're welcome Khuji 🙂 glad was useful, cheers Mark

  • @dawoodchaudary8736
    @dawoodchaudary8736 3 роки тому

    I am having problem as it says No file directory found

  • @rnk1415
    @rnk1415 3 роки тому +1

    I keep getting git@github.com: Permission denied (publickey). errors

    • @Ashotofcode
      @Ashotofcode  3 роки тому

      Hard to help out here sorry - back to more googling is all I can suggest afraid. Cheers Mark

    • @rnk1415
      @rnk1415 3 роки тому

      @@Ashotofcode found the reason: the ash key is removed from my agent each time I restart my laptops

  • @nanik7559
    @nanik7559 2 роки тому

    any solution for this kind of error