Skip to content

Instantly share code, notes, and snippets.

@sai92messy
Last active April 8, 2020 03:18
Show Gist options
  • Save sai92messy/6ab96fe66428b75c164d45c7da84631b to your computer and use it in GitHub Desktop.
Save sai92messy/6ab96fe66428b75c164d45c7da84631b to your computer and use it in GitHub Desktop.
Mina deploy configuration with ssh options
# config/deploy.rb
set :domain, 'remote.server.domain'
# Optional settings:
set :user, 'ubuntu' # Username in the server to SSH to.
set :port, '22' # SSH port number.
set :forward_agent, true # SSH forward_agent.
set :identity_file, '/path_to/remote/pem_file' # Local path to SSH key.
set :ssh_options, '-o "ProxyCommand ssh jump -W %h:%p"' # SSH options ProxyCommand.
# This will invoke SSH sessions with:
# $ ssh ubuntu@remote.server.domain -i /path_to/remote/pem_file -p 22 -A -o "ProxyCommand ssh jump -W %h:%p"
@atulmadan
Copy link

A repository has been shared with me on GitHub. If I ssh git@github.com, it connects.
However, through mina, I get even when I try to deploy through ssh_options as -A, it says permission Denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment