Capistrano ignoring SSH Agent Keys


Today I got pretty annoyed by Capistrano asking me for the password for my private key all the time when executing remote actions. This problem is caused by a buggy version of net Net-SSH Gem (namely v2.1.4, this is the related bug report). You can fix the problem by uninstalling the Gem and installing v2.0.24, which does not have the bug:

$ gem uinstall net-ssh
$ gem install net-ssh -v 2.0.24