Skip to content

Instantly share code, notes, and snippets.

@maxehmookau
Last active February 22, 2017 13:37
Show Gist options
  • Save maxehmookau/0c223efd7c4cd01945bce248f8474301 to your computer and use it in GitHub Desktop.
Save maxehmookau/0c223efd7c4cd01945bce248f8474301 to your computer and use it in GitHub Desktop.
lock '3.7.2'
set :application, 'my application'
set :repo_url, 'somethingsomething.git'
set :ssh_options, proxy: Net::SSH::Proxy::Command.new("ssh -W %h:%p -q root@proxy_server} -i {private_key_for_proxy} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no")
# All your other configs...
# Note: -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
# This can be potentially unsafe on an unknown network but is helpful for
# unattended deployments.
#
# Use at your own risk.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment