Skip to content

Instantly share code, notes, and snippets.

@rixrix
Created April 29, 2013 11:56
Show Gist options
  • Save rixrix/5481167 to your computer and use it in GitHub Desktop.
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.
#
# 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