I am trying to write a script that pushes a website to my server, where the website files are on my local machine for testing.
It works now, by using
rsync to update the server, then
ssh to get the server to run a script that does a few things (namely restart apache – the website uses WSGI).
The problem is that I have to input my password for the server twice, which I am not fond of.
Is there a way to make it so that I only have to input my password once? I don't particularly want to not have to enter my password at all, so I would like to have some way to do it without the