Okay folks, noob RSA question here.
I have a production server, and I've generated an rsa key there. I've then taken the public key (id_rsa.pub) and given that to github, as a deploy key I believe.
What I'm trying to do is automate a deployment script that'll run a 'git pull' on the server. However, every time I run 'git pull' it asks me for my password.
Is there any way to make it so it doesn't ask for the password every time? The specific line is:
Enter passphrase for key '~/.ssh/id_rsa':
Am I misunderstanding something here?
You've put a passphrase on your local key. You need to either remove the passphrase (not really recommended unless it's a single-use keypair) or run a user-agent that will essentially 'remember' that you've decrypted the key once and not ask you to do so again. ssh-agent is the one that comes with openssh. The usual procedure is to set up ssh-agent to autostart at login.
Github has a decent, if a bit minimal, tutorial on it.