Last active
April 8, 2020 03:18
-
-
Save sai92messy/6ab96fe66428b75c164d45c7da84631b to your computer and use it in GitHub Desktop.
Mina deploy configuration with ssh options
This file contains 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
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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