[capistrano] have to enter my SSH passpharse each time

752 views
Skip to first unread message

Jason FB

unread,
May 9, 2010, 3:59:21 PM5/9/10
to Capistrano
Hey everyone, I'm deploying from my Snow Leopard macbook to a VPS
environment with Rackspace. The environment is running Debian Lenny,
ruby 1.8.7.

My ssh keys between my laptop and the server work fine (so I can SSH
without entering a password here)

The ssh keys between the server & github is I think where my issue
is.

In setting the server's key (the one used by github to auth the
server's clone), I entered a passphrase at the prompt.

Now every time I run 'cap deploy' it prompts me for this passphrase.
My deploy works fine and I managed to get rid of the other passwords
that needed to be entered during depoy-- but this one remains.

Enter passphrase for key '/home/deploy/.ssh/id_rsa'

How do I get rid of it so I can do a 100% password-less 'cap deploy'

Thanks,
Jason

--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

Lee Hambley

unread,
May 9, 2010, 4:20:06 PM5/9/10
to capis...@googlegroups.com
Jason,

Simply remove the passphrase from the deploy key.

See man (1) ssh-keygen

- Lee

Mathias Meyer

unread,
May 9, 2010, 4:24:00 PM5/9/10
to capis...@googlegroups.com
On Sun, May 9, 2010 at 10:20 PM, Lee Hambley <lee.h...@gmail.com> wrote:
> Jason,
> Simply remove the passphrase from the deploy key.
> See man (1) ssh-keygen

As an alternative, and if you want to keep the password on your key,
start using the Snow Leopard built-in ssh-agent (or SSHKeychain) and
set

ssh_options[:forward_agent] = true

in your deploy.rb file. Enter password once with your agent and you're
good to go.

Cheers, Mathias
--
http://scalarium.com | http://paperplanes.de
http://twitter.com/roidrage

Lee Hambley

unread,
May 9, 2010, 4:25:36 PM5/9/10
to capis...@googlegroups.com
To add to Matthias's explanation, then you will be bypassing the deploy key you configured and using your own key to checkout from Github, this has its own implications - but should get you started.
Reply all
Reply to author
Forward
0 new messages