1

I'm trying to clone a repo into PythonAnywhere, but I'm getting a permission denied (publickey) error.

I followed the instructions on Pythonanywhere to set up ssh keys and pasted them into GitHub like normal, but I'm still receiving the error.

git clone git@github.com:hackerlikecomputer/CPD-Adult-Arrests-Scraper.git                                             
Cloning into 'CPD-Adult-Arrests-Scraper'...                                                                                                                                           
key_load_public: invalid format                                                                                                                                                       
Permission denied (publickey).                                                                                                                                                        
fatal: Could not read from remote repository.                                                                                                                                         

Please make sure you have the correct access rights                                                                                                                                   
and the repository exists.
Turbo
  • 2,179
  • 18
  • 38
Chris Hacker
  • 51
  • 1
  • 1
  • 5
  • 2
    Make sure you are cloning with the correct user (i.e. the user you created the ssh keys for). Also: https://stackoverflow.com/questions/42863913/key-load-public-invalid-format Try create a new set of keys i.e. `ssh-keygen -t ed25119` (or whatever type). Then `cat ~/.ssh/id_25519.pub`. Copy paste output to github SSH key area – Tagger5926 Aug 14 '19 at 22:53
  • @Tagger5926 this should be an answer. – harmonica141 Aug 15 '19 at 08:35

1 Answers1

1

Make sure you are cloning with the correct user (i.e. the user you created the ssh keys for).

Also this might be relevant: key_load_public: invalid format

Another thing you can try is create a new set of keys i.e. ssh-keygen -t ed25119 (or whatever type). Then cat ~/.ssh/id_25519.pub. Copy paste output to github SSH key area

Just in case something is corrupt or not generated properly.

Tagger5926
  • 442
  • 3
  • 13