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.
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
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!
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.
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.
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 :)
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.
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!
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.. /..\
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.
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
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
Köszönjük!
Thanks Kristóf! 😍😍 glad was helpful. Cheers Mark
This is the only tutorial that is clear, concise, and works!!!!
Thanks Brett - glad it was helpful :-)
Hey, I world say this is the best video on this topic, short and concise. really loved it. 🥰
Wow, thank you!
Thanks Sir, I am stuck with this problem for the last 8 months. This is really awesome, thanks again to solve my issue.
Excellent, glad it helped Amol 😎
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.
Nice glad it was useful Arli😀
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
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!
Great to hear! Thanks Mark
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.
Excellent! glad it helped out, Cheers Mark
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.
Cool glad it helped Daniel! :-) Cheers Mark
This is concise and simplest tutorial that I have seen. Thank so much !!!
Glad it was helpful! Thanks Juhand 😀
This is the only guy who explained everything very clearly.
Thanks🙂
This was exactly what I needed to have different keys for different AWS accounts!! Thank you very much!!
You're very welcome Luciano! Cheers Mark
Without writing a long paragraph of how much this help, I'll simply say, Thank you!
Thanks Geraldaga - glad it helped out 🙂Cheers Mark
The only useful video to Authenticating multiple GitHub accounts using SSH all over the internet 👌👌👌👌
cool, thanks Hakob, Cheers Mark 🙂
I don't know, who clicked dislike, but this HELPED ME A LOT, and saved my time. . .
Thanks Lech - glad it helped out :-) Cheers Mark
World needs to know your channel
Thanks Agostinho!
This video must be protected. It’s so important. Thank you mate
Cool thanks! glad it was helpful :-)
God friggin bless you sir. This was driving me nuts.
Cheers Tom, glad it helped :-)
You are my new god!
Thank you sir :) Very helpful. I was just about to give up.
You are welcome Tal 🙂 Cheers Mark
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.
Nice thanks!
Thanks! for some reason my second ssh key didn't work, you helped me solve the issue.
Glad I could help! Cheers Mark
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 :)
Glad it helped! Cheers Mark 🙂
Awesome video! Really helpful! Thanks for taking the time to record, edit and upload it!
No problem! Cheers Mark 🙂
Amazing explanation! pretty clear
Glad you think so Santiago! Thanks Mark
Thank you so much. it's helps me a lot by watching your video.
Glad it helped! Cheers Mark 🙂
Superb video. Great job. Thank you
👍
Thank you too Vadim, glad was useful :-)
That was a great presentation and helped me a lot. Thank you very much
Glad it was helpful Ramdane 🙂Cheers Mark
Exactly what I was looking for! Thanks.
Great to hear Shnigi 🙂 Cheers Mark
Straight forward tutorial!! I just subscribed
Nice glad it was useful :-) and thanks for the sub!
THANK YOU!! This was driving me insane! Thank you
You're welcome! glad it helped 🙂Cheers Mark
learnt a lot from this thanks... served the purpose
Glad was useful Ayush :-)
Very Nice. Was really looking to this help. Thanks a lot
Thanks! Glad it helped 😎
thank you so much for helping solving my problem! You're awesome!
Thanks Yang glad it was helpful :-)
worked like a charm for me! Thank you!
Glad it helped! 🙂Cheers Mark
Thanks a lot for the exact solution which I am looking for!!
You are most welcome
thanks, man! it was really beneficial.
excellent 🙂
Thank you, Sir. Helpful video
Most welcome 😁 Cheers Mark
why in cpanel create known_hosts?
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.
¡Muchas gracias! Me ayudó mucho. No hay tutoriales en español de esta parte.
This was really really very helpful. Thanks a lot😄
You're welcome Manikant 😊 Cheers Mark
Thank you sir for this video. It helped me so much!
Glad to hear that Atharva :-) Cheers Mark
This was very helpful. Thanks
You're welcome! Cheers Mark 🙂
Thank you for creating this! Very helpful! :)
Cool glad it was helpful! cheers Mark
You saved my work. Thanks a lot
You're welcome!
You are the best, thank you!🤘
Cool glad it helped out 🙂Cheers Mark
Thank you so much sir , Its saved me a lot of trouble.
Glad to hear that Deepak :-) Cheers Mark
thanks a lot man! i had been struggling with this.
No problem! 🙂 Glad was helpful - Cheers Mark
Thank you for this solution!
Glad it helped Nikhil 🙂Cheers Mark
Great video! Should I always change the clone link to match with my host in my config file?
Thanks Gustavo glad you liked it - been too long afraid for me to recall though - Cheers Mark
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!
Nice work! Cheers Mark
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.. /..\
Sorry Sylver - hope you found the info you need from somewhere. Cheers Mark
I am having the exact same issue for my work account
👏 Saved the day
Thanks Himachal glad it was of use :-)
Thanks a lot ! Great tutorial...
All good, glad was useful Mehmet, cheers Mark 😀
thank you very much
No worries!
KeePass has a plugin, allows not to keep all keys on HDD. also works fine for multiple ssh accounts.
Nice that will give some extra security for sure - thanks for the heads up will take a peek I reckon :-)
Thanks for your work! It helped me a lot.
Glad to hear that Dory :-) Cheers Mark
Thanks for the information!
Any time! Cheers Mark
Great job! What is known_hosts used for then
Thanks Dan - been too long for me to recall afraid 🙂Cheers Mark
Thanks a lot! very helpful
You're welcome Carlos :-) Cheers Mark
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.
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
In my case i have written a custom zsh script that updates the local git config (user,username,email)
Excellent.
Just need one on configuring the 'git send-email' SMTP authentication password for projects working on a patch flow basis.
you saved my life Thanks
Excellent, glad you found useful Onas 🙂 Cheers Mark
you save my time, thank you
Glad it helped! 😀Cheers Mark
Thanks: Its great tutorial
Glad it was helpful! Cheers Mark
Thanks for the help.
cool glad it was useful 🙂Cheers Mark
Perfect! thank you so much.
Glad it helped Miguel!
very useful thanks.
You are welcome Santosh. Cheers Mark
thanks man it was very helpful
Glad it helped Ayman :-) Cheers Mark
If I create a new local repo, how can I add the origin and use the correct SSH key?
Thanks. It helps me.
Glad to hear that! Cheers Mark 🙂
cd .ssh shows no such directory in my PC. Do I just need to create one or it is a problem?
Thanks!
thanks man, It's working
You're welcome Deepak 🙂Cheers Mark
Awesome! Thanks!
No problem! Cheers Mark
saved my day
Cool! - glad it was helpful - Cheers Mark 🙂
Is there a way to permanently set the remote host or I have to modify the host anytime I'm cloning a new repository
Great, man. You saved me :)
You're welcome Faridul :-) Cheers Mark
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
Thank you so much!!!
Cool glad it was helpful 😀
I did it ! Thanks Man !
Nice! glad it helped Vinay 😁 Cheers Mark
Thanks a lot!) That was useful!
You're welcome Artem - Cheers Mark
thanks a lot bro! good video
Glad you found useful Alex 🙂Cheers Mark
you are awesome thank you
You're welcome! Cheers Mark
Thanks in advance!
Welcome Thilina 🙂 Cheers Mark
Great Tutorial man
Glad you liked it!
Thank you!
Cool, glad it was useful, cheers Mark 🙂
AWESOME!!!!!!!!!!!!!!
Thanks Ajinkya, glad it helped out :-)
this is so cool
Cheers! 🙂
Hi, I would need to try single deploy key to be added on multiple repository.. is this possible? Please help me out
Hi Shubham, I'm afraid not no, Github will check if the key is used on another repository and deny this.
@@Ashotofcode Thank you so much :) appreciate your quick response generally nobody respond to such questions:) thank you again bro!
Easiest solution.
Thanks Nishant, glad it was helpful, cheers Mark 😀
thenk you 😇
No problem 😊
Works on Linux also thankyou.
Nice! 😀
Great stuff :-D!!
Thanks Natasha 😀
Thanks !
Welcome! Cheers Mark 🙂
Subscribed
Thanks man
No problem :-) Cheers Mark
I am having problem as it says No file directory found
any solution for this kind of error
Thank you
You're welcome Khuji 🙂 glad was useful, cheers Mark
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
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
@@Ashotofcode oh didn't know that and yeah I wrote it wrong in the comment 😅😅
Thanks for everything 🤝🏻
on Linux i needed to `ssh-add `
Thanks - Glad was interesting. Cheers Mark