Replies: 1 comment
-
I will close this one as it was converted in an issue #366 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
Firstly, Thiago, UAC is a fantastic tool. I know you hear this a lot, but I just had to say it.
Anyway, getting to the point — I recently came across a situation where I was trying to perform an acquisition using UAC and send the result to an SFTP server. I followed the documentation's instructions and got the following error:
When using multiple options with the
sftp
command, you need to provide the-o
parameter for each option separately.The current syntax:
sftp -r -P 22 -i "/Users/4n6guy/id_rsa" -o StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null "[email protected]" >/dev/null << EOF
The correct syntax should be:
sftp -r -P 22 -i "/Users/4n6guy/id_rsa" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "[email protected]" >/dev/null << EOF
In short, we need to replace the comma (
,
) after theStrictHostKeyChecking=no
option with another-o
.So, I went to the
lib
folder and edited line 24 of thesftp_transfer.sh
file, specifically the__sr_ssh_options_param
variable, to allow multiple options to be used correctly. Here's the updated line 24:__sr_ssh_options_param="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null${__sr_ssh_options:+-o} ${__sr_ssh_options}"
After that, UAC worked like a charm:
I believe it will be a minor fix in future releases.
Hope this helps, guys!
Beta Was this translation helpful? Give feedback.
All reactions