Could you try adding “ssh.pythonanywhere.com” to the known_hosts
file?
You can either add an extra step:
- run:
name: Update known hosts
command: ssh-keyscan -H ssh.pythonanywhere.com >> ~/.ssh/known_hosts
Or add the command to an existing step:
- run:
command: |
ssh-keyscan -H ssh.pythonanywhere.com >> ~/.ssh/known_hosts
ssh $pythonAnywhereUser@ssh.pythonanywhere.com