Created
April 29, 2013 11:56
-
-
Save rixrix/5481167 to your computer and use it in GitHub Desktop.
FIX for Capistrano's SSH error "Net::SSH::AuthenticationFailed error". This is a common error that you might encounter when working with Capistrano from one environment to another especially if Capistrano is configured to deploy on a password-less authentication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # FIX for Capistrano's SSH error "Net::SSH::AuthenticationFailed error" | |
| # This is a common error that you might encounter when working with Capistrano from one environment to another, | |
| # especially if Capistrano is configured to deploy on a password-less authentication. | |
| # | |
| # The fix: specify the authentication eg. auth_methods | |
| # | |
| set :ssh_options, {:forward_agent => true, :auth_methods => 'publickey'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment