Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Siva,
Is your public key loaded?
ssh-add -l
If you're on Windows is Pageant.exe loaded with the correct key?
Hi Jesse,
In the current environment that I work, I use bitbucket and sourcetree. I usually create a feature branch in bitbucket and then checkout using source tree.
Few days back , I had to change my login password. From that day I was unable to checkout into sourcetree. I tried to delete my local branches, and some how now I am encountered with lot of issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Siva,
Try and add your SSH key and then try again:
ssh-add -K ~/.ssh/span12-Bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No problem! An easier way to do this would be to add an entry to your config file, which would make it so you wouldn't have to add your key upon startup:
1. Create a file named "config" under your ~/.ssh/ directory
2. Add this entry:
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/span12-Bitbucket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jesse,
I see "config" already in there. Here are the contents :
# --- SourceTree Generated ---
Host span12-Bitbucket
HostName bitbucket.org
User span12
PreferredAuthentications publickey
IdentityFile /Users/span12/.ssh/span12-Bitbucket
UseKeychain yes
AddKeysToAgent yes
# ----------------------------
But I don't see " Host * " should I need to add this ?
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Host *" would set the key to be used with any hosts you connect to. If you're only using the key for Bitbucket Cloud, then your entry is fine.
Here's another example of setting up multiple hosts with the same key file: https://unix.stackexchange.com/questions/16571/multiple-host-in-ssh-config
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.