![]() ![]() Check that both of your personal and work account have the correct public keys added for access.Save the private and public keys for later use. Fresh Start: If you want to start from scratch, generate two new keys in PuttyGen.Tools Options Below SSH Client Configuration, change SSH Client to OpenSSH. If you don’t use Sourcetree, you have finished it Test with ssh -T to see the connection. rsa to the file name so you can differentiate from your ppk format private key. Log in Github Settings SSH and GPG keys New SSH key Then, paste your public key to the box. Existing Keys: If you previously used Putty, load your ppk into PuttyGen and convert it to Open SSH format using the conversion option.We'll be implementing the scenario where you have 1 work and 1 personal Github/Bitbucket/Gitlab account Obviously this is Windows and Git specific. I have recorded the steps I took to guarantee a sure-fire process to achieve functional Windows Sourcetree with Git working on multiple SSH keys. ![]() What I found most interesting was that every document explaining how to do this omitted one or two critical details. This week we have officially adopted two-factor authentication for our revision control so guess what?!Īs the documentation clearly states, this breaks HTTPS login for Git!Īll things considered this is a small issue but getting multi-key SSH configured was surprisingly difficult. To avoid SSH key issues we just use simple HTTPS to clone our repos down instead of hassling with multiple SSH keys. Sometimes we work from our personal computers and being developers, we have our own projects outside of work that are associated with different credentials. Select which scopes you wish to grant this token. The steps to do this are as follows: Go to your Personal Access Tokens settings in GitHub. We use Git and Sourcetree, primarily on the Windows operating system and love it 99% of the time. To work with GitHubs two-factor authentication in SourceTree you can simply use your access token instead of your password. ![]()
0 Comments
Leave a Reply. |