Right now I have a Phing script that takes the files from a branch of our Git Repository, updates a server, and does a few other changes on it.
The problem is Git asks me for the password everytime — so every night (for our nightly build), I have to do this manually, and we have 3 different systems, so I have to do it 3 times.
Is there anyway to automate this? I don’t want to rely on SSH-Agent, as we may restart the server at some point, and I may forget that I then have to reactivate it, and then our nightly builds will stop.
Any ideas?
Create a (new) ssh-key without password and use this for ssh-connections to your git repository. The reason, why it asks for a password is, that it has one 😉
For example I use a Jenkins-server, that runs under the user
jenkins. I’ve created a ssh-key without password for this user and then the only thing I had to do is to publish the key to the ssh-server (ssh-copy-id, or (in my case) the formular in githubs account settings)