Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a debian server (2.6.18-6-686, etch) set up with gitosis (0.2+20080825-2) installed. Everything works just fine, but my problem is that when I clone and pull any repository it requests the password of my private key and I am wondering if there is anyway to instead request the password for the key it would just use the private/public key pair to authenticate and not require a password.

Right now this is what happens

$ git pull
Enter passphrase for key '/home/stmpy/.ssh/id_rsa':

once I put the password in then the pull works, but I don't want to have to input my password. I am trying to create a crontab that would pull changes and update a website I work on every night, but with it requesting the password it doesn't appear to work.

I've looked up tutorials about creating cron jobs with gitosis and no one appears to be doing anything about the password, which is why I think I have something configured wrong. I have not done any custom editing to gitosis or sshd. So both servers are running default settings.

Any help would be great, and sorry if this is a duplicate, I looked around for an hour or so and couldn't find an answer to this. Thanks again!

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Re-generated the key pair with no passphrase, it will not ask anymore.

share|improve this answer
    
You are Awesome! Thanks for the help –  stmpy Aug 2 '11 at 19:39
add comment

Your Answer

 
discard

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.