So I got the following error when trying to deploy:
Error:
The solution
This stackoverflow post helped me.
This seems to have solved the problem:
It could be that the ssh-agent was not running, and if it was not, the following command is supposed to start it:
I am not familiar with those commands, but they helped me and I should learn more about them in the near future.