My code is in a private git repository that uses ssh and known hosts for access. I added the public key generated in my bash script in my account on pythonanywhere to the authorized_keys on the git repository server, but I don't know how to add an entry for the known hosts, since I don't know the IP or host name for my account.
This is what happens when I try to clone the repo:
git clone mark@96.126.102.203:git-repo/memorabilia.git
Cloning into 'memorabilia'...
ssh: connect to host 96.126.102.203 port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I think I should be able to ssh to the repository from my pythonanywhere account, but that does not work either. I am assuming because of the missing entry for known_hosts on the git server.
ssh mark@96.126.102.203
ssh: connect to host 96.126.102.203 port 22: Connection refused
What am I missing in the set up to clone the repository to my python anywhere account? How do I add my pythonanywhere account to the known_hosts on the git server?
Thanks
Mark