Hi,
I'm having github files and i have remote for that. Now i want to use bitbucket. So for that i have added new ssh key. Now my problem is, i'm trying to push the files form local disk to bitbucket.
Its Showing error like " Permission denied (publickey). Fatal: could not read remote repo. Please make sure you have the correct access rights and repo exists. "
Please help me...
Suresh,
You can test immediately if your key is loaded properly by doing the following:
ssh -Tv git@bitbucket.org
If this fails, then you'll need to double check your settings as noted in our documentation:
Host bitbucket.org IdentityFile ~/.ssh/my_key_rsa
git remote add bitbucket git@bitbucket.org:{username}/{repo name}.git
Finally, if this still isn't working for you. Check out our troubleshooting guide.
Thanks Marcus...
I tried to clone my repo...It works fine. I have push the file using git push <URL> command. I cannt use repo reference name. Why?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to update your remotes.
git remote -v git remote rm origin git remote add origin git@bitbucket.org:{username}/{repo slug}.git
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks...
I did git remote add https://{username}@bitbucket.org/{username}/{repo slug}.git.
I tried with git remote add bitbucket.org/{username}/{repo slug}.git and it returns error like Permission denied (publickey), Could not read from remote repo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I left off the 'origin' specification in my example. Try that again.
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.