Skip to content

Instantly share code, notes, and snippets.

@dhargitai
Created May 2, 2014 08:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhargitai/cbb64cf6869902a24e99 to your computer and use it in GitHub Desktop.
Save dhargitai/cbb64cf6869902a24e99 to your computer and use it in GitHub Desktop.
Config Capistrano to use a PEM file for SSH authentication
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
ssh_options[:auth_methods] = ["publickey"]
ssh_options[:keys] = ["~/.ssh/key.pem"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment