Transferred project from Cloud 9 to Amazon AWS and need help linking github

I am getting the following error when trying to “git push origin _____” for my website project on Amazon AWS Cloud 9:

Warning: Permanently added ‘bitbucket.org,18.205.93.1’ (RSA) to the list of known hosts.
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I’m not sure what to do to ensure the repository is linked correctly? I did it earlier when it was just Cloud 9, but after migrating my project from Cloud 9 to AWS Cloud 9 it is no longer linked correctly or something

Hi and welcome @mikerich94 ,

What is the output of  git remote -vMake sure to censor classiefied information, if any.

One scenario I can think of is that your authorized public key was not transferred from Cloud 9 to AWS Cloud 9 and therefore you lost access.

Let us know!