When cap deploy keeps asking for passwords even though you’ve set up your authorized_keys files, do two things:

First, check perms for the whole directory tree leading up to $HOME/.ssh:

server$ chmod go-w ~/
server$ chmod 700 ~/.ssh
server$ chmod 600 ~/.ssh/authorized_keys

Second, add the deploy user’s public key to the authorized_keys file. Test by ssh’ing to localhost. No password = good to go!

Written on September 22nd, 2009 & filed under SciTech
LEAVE A COMMENT

You must be logged in to post a comment.