Authenticating on multiple GitHub accounts using SSH

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

КОМЕНТАРІ • 212

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

    Köszönjük!

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

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

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

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

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

      Thanks Brett - glad it was helpful :-)

  • @codewitham22
    @codewitham22 17 днів тому +1

    Hey, I world say this is the best video on this topic, short and concise. really loved it. 🥰

  • @amolshirole2639
    @amolshirole2639 4 роки тому +8

    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  4 роки тому +1

      Excellent, glad it helped Amol 😎

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

    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  4 роки тому

      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 роки тому +4

    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 роки тому +2

    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 3 роки тому +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  3 роки тому +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 😀

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

    This is the only guy who explained everything very clearly.

  • @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

  • @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

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

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

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

      cool, thanks Hakob, Cheers Mark 🙂

  • @lkuznecoff
    @lkuznecoff 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

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

    World needs to know your channel

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

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

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

      Cool thanks! glad it was helpful :-)

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

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

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

      Cheers Tom, glad it helped :-)

  • @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

  • @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.

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

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

  • @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 🙂

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

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

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

    Amazing explanation! pretty clear

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

      Glad you think so Santiago! Thanks Mark

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

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

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

    Superb video. Great job. Thank you
    👍

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

      Thank you too Vadim, glad was useful :-)

  • @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

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

    Exactly what I was looking for! Thanks.

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

      Great to hear Shnigi 🙂 Cheers Mark

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

    Straight forward tutorial!! I just subscribed

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

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

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

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

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

      You're welcome! glad it helped 🙂Cheers Mark

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

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

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

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

  • @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 :-)

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

    worked like a charm for me! Thank you!

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

      Glad it helped! 🙂Cheers Mark

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

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

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

    thanks, man! it was really beneficial.

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

    Thank you, Sir. Helpful video

  • @DKYtut
    @DKYtut 3 роки тому +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.

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

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

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

    This was really really very helpful. Thanks a lot😄

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

      You're welcome Manikant 😊 Cheers Mark

  • @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

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

    This was very helpful. Thanks

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

    Thank you for creating this! Very helpful! :)

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

      Cool glad it was helpful! cheers Mark

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

    You saved my work. Thanks a lot

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

    You are the best, thank you!🤘

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

      Cool glad it helped out 🙂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

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

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

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

      No problem! 🙂 Glad was helpful - Cheers Mark

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

    Thank you for this solution!

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

      Glad it helped Nikhil 🙂Cheers Mark

  • @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

  • @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!

  • @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

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

    👏 Saved the day

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

      Thanks Himachal glad it was of use :-)

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

    Thanks a lot ! Great tutorial...

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

      All good, glad was useful Mehmet, cheers Mark 😀

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

    thank you very much

  • @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 :-)

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

    Thanks for your work! It helped me a lot.

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

      Glad to hear that Dory :-) Cheers Mark

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

    Thanks for the information!

  • @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

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

    Thanks a lot! very helpful

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

      You're welcome Carlos :-) Cheers Mark

  • @mydearest1000
    @mydearest1000 4 роки тому +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  4 роки тому +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 3 роки тому +1

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

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

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

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

    you saved my life Thanks

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

      Excellent, glad you found useful Onas 🙂 Cheers Mark

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

    you save my time, thank you

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

      Glad it helped! 😀Cheers Mark

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

    Thanks: Its great tutorial

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

    Thanks for the help.

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

      cool glad it was useful 🙂Cheers Mark

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

    Perfect! thank you so much.

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

    very useful thanks.

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

      You are welcome Santosh. Cheers Mark

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

    thanks man it was very helpful

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

      Glad it helped Ayman :-) Cheers Mark

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

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

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

    Thanks. It helps me.

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

      Glad to hear that! Cheers Mark 🙂

  • @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!

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

    thanks man, It's working

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

      You're welcome Deepak 🙂Cheers Mark

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

    Awesome! Thanks!

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

    saved my day

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

      Cool! - glad it was helpful - Cheers Mark 🙂

  • @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

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

    Great, man. You saved me :)

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

      You're welcome Faridul :-) Cheers Mark

  • @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

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

    Thank you so much!!!

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

    I did it ! Thanks Man !

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

      Nice! glad it helped Vinay 😁 Cheers Mark

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

    Thanks a lot!) That was useful!

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

      You're welcome Artem - Cheers Mark

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

    thanks a lot bro! good video

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

      Glad you found useful Alex 🙂Cheers Mark

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

    you are awesome thank you

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

    Thanks in advance!

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

      Welcome Thilina 🙂 Cheers Mark

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

    Great Tutorial man

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

    Thank you!

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

      Cool, glad it was useful, cheers Mark 🙂

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

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

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

      Thanks Ajinkya, glad it helped out :-)

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

    this is so cool

  • @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!

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

    Easiest solution.

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

      Thanks Nishant, glad it was helpful, cheers Mark 😀

  • @Furkan-mw7kw
    @Furkan-mw7kw 2 роки тому +1

    thenk you 😇

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

    Works on Linux also thankyou.

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

    Great stuff :-D!!

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

    Thanks !

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

    Subscribed

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

    Thanks man

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

    I am having problem as it says No file directory found

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

    any solution for this kind of error

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

    Thank you

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

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

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

    thanks it was amazing, do you know why git commit -am -m "message" won't work to me?? is that an alias or something? thanks :D

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

      thanks! I find it fails with files in sub directories, could that, also you have -m twice here, need to ensure only -am specified. Cheers Mark

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

      @@Ashotofcode oh didn't know that and yeah I wrote it wrong in the comment 😅😅
      Thanks for everything 🤝🏻

  • @ahmedmagdy-qg3tb
    @ahmedmagdy-qg3tb 2 роки тому +2

    on Linux i needed to `ssh-add `

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

      Thanks - Glad was interesting. Cheers Mark