Whenever I reboot my machine, I have to create a new SSH key because the previous one doesn't work. I validate that the public key file lines up with the one in my BitBucket settings, I've run `ssh git@bitbucket.org -Tv` and found that I was able to log in with no problem, but whenever I run any kind of command to the repository it gives me `repository access denied`. I have confirmed that my permissions are set up correctly.
As far as I know I am doing everything correctly on my part, but the only way to get it to work again is to set up a brand new SSH key - which will then stop being accepted whenever my machine reboots.
Hey Alan, What's the client machine? Windows, Mac or Linux? Are you using a client or is normal command line? The last question I have is if you are using Server or Cloud?
This should help me provide a better answer.
Thanks
Hey Alan, So I have seen issues like this before. So what you have to know is that there are different ENV's on your Windows machine.
ENV's:
Check out the following KB:
https://confluence.atlassian.com/bitbucket/set-up-an-ssh-key-728138079.html
As you can see, Sourcetree, Git Bash, Putty and the OS all store the keys in different places. I would use the above KB to make sure you are creating the key correctly.
You can use config files to point to the private key from all of the above clients too. Here is a good resource for ssh config file:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, so it seems the configuration was the culprit. I had an IdentityFile entry for bitbucket.org which was pointing to the standard format keyfile (stored at ~/.ssh/bitbucket_rsa) but PuTTy uses its own format (stored at ~/.ssh/bitbucket_rsa.ppk). I presume that when it tried to connect, it was expecting to use the wrong file. After I deleted that entry from the config file, I was able to connect again.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.