{"id":2601,"date":"2022-02-17T19:06:28","date_gmt":"2022-02-17T19:06:28","guid":{"rendered":"https:\/\/salientsoft.co.uk\/?p=2601"},"modified":"2022-02-25T10:14:49","modified_gmt":"2022-02-25T10:14:49","slug":"adding-bitbucket-authentication-to-webstorm","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2601","title":{"rendered":"Adding Bitbucket Authentication to Webstorm"},"content":{"rendered":"\n<p>I had to do this again for a new Windows 10 installation and had forgotten all the details, so am recording it here to save searching it out next time. Actually the help on Bitbucket covered it well.<\/p>\n<p>1\/ My preferred way to authenticate with Bitbucket is to use an ssh keypair, which is set up with ssh-keygen<\/p>\n<p>2\/ Follow the instructions on bitbucket <strong><a href=\"https:\/\/support.atlassian.com\/bitbucket-cloud\/docs\/set-up-an-ssh-key\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.\u00a0<\/strong>In my case, I used the defaults for everything including the file location, and did not use a pass phrase. Per the instructions, as I was using Windows 10, ssh-keygen ran fine direct from a command prompt with no issues, rather than needing a git bash prompt.<\/p>\n<p>3\/ As per the instructions, I added the public key to bitbucket.<\/p>\n<p>4\/ I added the SSH configuration to Webstorm under File\/settings\/Tools\/SSH Configurations. The host was bitbucket.org with the default port. The user was the bitbucket username. I picked key pair as the authentication method, and webstorm already had the correct default location for the ssh private key file. I left the passphrase empty, and hit test connection &#8211; this worked ok, so I saved the settings.<\/p>\n<p>5\/ When I did my first commit\/push, webstorm requested a git user and email so that the change would be tagged correctly &#8211; note that this is not an authentication username, so I just used my standard abbreviation that I use with source control.<\/p>\n<p>Following this, commit and push worked fine.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had to do this again for a new Windows 10 installation and had forgotten all the details, so am recording it here to save searching it out next time. Actually the help on Bitbucket covered it well. 1\/ My preferred way to authenticate with Bitbucket is to use an ssh keypair, which is set [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[204],"tags":[16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2601"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2601"}],"version-history":[{"count":4,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2601\/revisions"}],"predecessor-version":[{"id":2625,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2601\/revisions\/2625"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}