Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need the ability to add ssh config options #47

Open
michaelorr opened this issue Mar 3, 2017 · 0 comments
Open

Need the ability to add ssh config options #47

michaelorr opened this issue Mar 3, 2017 · 0 comments

Comments

@michaelorr
Copy link

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}/"

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant