Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ( 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?

share|improve this question
Between pjz's answer below and the following website, I got things working: – scottlabs Jul 29 '10 at 23:12
up vote 6 down vote accepted

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.

share|improve this answer
Okay, so according to googled materials, I do: "ssh-agent bash", enter my password, then do "ssh-add". And then no more password. But if I log out, I need to do this again. Is there a better tutorial then the ones I'm finding on how to get through ssh-agent? – scottlabs Jul 7 '10 at 18:27
What operating system/distribution are you running? Might be a more automatic and convenient ssh-agent solution available. – andol Jul 13 '10 at 15:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.