Git push new project permission denied -
so tried create new project @ bitbucket , import current stuff.
step 1: switch repository's directory
cd /path/to/your/repo
step 2: connect existing repository bitbucket
git remote add origin ssh://git@bitbucket.org/kevinspence/app.git git push -u origin master
after
git push -u origin master
i got error:
$ git push -u origin master permission denied (publickey). fatal: not read remote repository. please make sure have correct access rights , repository exists.
what doing wrong, (it not first project on bitbucket)
it sounds don't have ssh key setup correctly. follow setup ssh key: https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html
as else commented, page can troubleshoot further: https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html
if still doesn't help, might opt add remote git using https instead of ssh. bitbucket should have drop-down under clone pick between https , ssh
Comments
Post a Comment