Forums

Github SSH

Hi! I'm using Pythonanywhere since 1 months and I updating my code with git pull command and I add my username and password. Today I'm getting this message:

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

Can somebody help my how can I solve this problem? I generated an SSH key but don't know how to step further without cloning my whole site again.

Sorry for the question, I'm not so experienced.

You need to change remore setting for your repo. See https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories#changing-a-remote-repositorys-url

Thank you for your support. I tried it, but something went wrong.

  • I changed https to ssh with this command: git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
  • I made this steps on my computer and in the Pythonanywhere Bash console
  • I verified it and it changed in both
  • After it I tried in the Bash console to git pull

The error message:

The authenticity of host 'github.com (140.82.112.3)' can't be established.
RSA key fingerprint is ........
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,140.82.112.3' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

What did I wrong?

Could you show how looks the output of the command git remote -v?

Thank you! In meantime I managed to do it.