statistrano icon indicating copy to clipboard operation
statistrano copied to clipboard

Need the ability to add ssh config options

Open michaelorr opened this issue 8 years ago • 0 comments

It is possible to specify config options to pass to rsync via rsync_flags but there is no comparable ability to pass config params to the ssh remote shell. i.e. these lines:

      resp = run_local "rsync #{rsync_options} " +
                       "-e ssh #{local_path}/ " +
                       "#{host_connection}:#{remote_path}/"

https://github.com/mailchimp/statistrano/blob/91ea21c5469b1c6371e4dbd0cbf87388598aecd6/lib/statistrano/remote.rb#L74-L76

Need to actually be something like:

      resp = run_local "rsync #{rsync_options} " +
                       "-e ssh #{ssh_options} #{local_path}/ " +
                       "#{host_connection}:#{remote_path}/"

This would be useful in order to (for example) pass -o StrictHostKeyChecking=no in order to prevent Host Key Validation from failing the rsync in an environment where you cannot easily modify the ~/.ssh/config.

michaelorr avatar Mar 03 '17 21:03 michaelorr