-
Notifications
You must be signed in to change notification settings - Fork 138
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
fix: Adding in SCP options configuration #340
Conversation
This changeset adds in additional SCP options to the config. This allows the user to specify a list of flags to send to the SCP command that will be expanded into each shell command. The primary driver for this is from newe boxes SSHing into pre 9 openSSH boxes. New openSSH uses sftp server under the hood, rather than the older SCP protocol. If you go into a system that does not have these changes, SCP fails to work. The '-O' command line flag was introduced to resolve this. Using this change, the user can now pass in `extra_scp_options = {"-O"}` to resolve the issue.
Note: Couldn't find an open issue relating to this, but ran into the problem and decided to polish and publish the fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a good idea, but table.unpack
does not exist in LuaJIT. It instead has the global unpack
function from lua 5.1. Did you even test this to see if it fixes your issue?
I've been running it for a few weeks without issue, yeah. That's super odd -- I'll go ahead and change it and push. |
Possible that your luajit is built with Thanks for the PR! |
This changeset adds in additional SCP options to the config. This allows the user to specify a list of flags to send to the SCP command that will be expanded into each shell command.
The primary driver for this is from newer boxes SSHing into pre 9 openSSH boxes. New openSSH uses sftp server under the hood, rather than the older SCP protocol. If you go into a system that does not have these changes, SCP fails to work. The '-O' command line flag was introduced to resolve this.
Using this change, the user can now pass in
extra_scp_options = {"-O"}
to resolve the issue.