When running await $session.scp-upload: 'existing_local_file_name', 'target_file_name' the program dies with an exception (paths partially redacted):
An operation first awaited:
in sub MAIN at PATH_TO_MY_SCRIPT line 41
in block <unit> at PATH_TO_MY_SCRIPT line 4
Died with the exception:
A react block:
in block at PATH_TO_MY_RAKU_INSTALL_DIR/share/perl6/site/sources/EED32749D7C06518A0A296D35851B0E5E6ECDDC0 (SSH::LibSSH) line 763
Died because of the exception:
Unexpected SCP status 1: scp: error: unexpected filename:
in sub check-status-code at ANOTHER_PATH line 769
in block at ANOTHER_PATH (SSH::LibSSH) line 777
in block at ANOTHER_PATH (SSH::LibSSH) line 899
I tried multiple ways of specifying the path to the remote target but with no success (the same output each time, only with an empty remote path I get scp: ambiguous target instead)
(Running SSH::LibSSH:ver<0.9.1> on MoarVM Rakudo 2022.07, Fedora 36, x86_64)
With otherwise functional
SSH::LibSSH::Session $session
established based on https://github.com/jnthn/p6-ssh-libssh/blob/master/examples/run-command.p6 example (running commands andscp-download
works as expected):When running
await $session.scp-upload: 'existing_local_file_name', 'target_file_name'
the program dies with an exception (paths partially redacted):I tried multiple ways of specifying the path to the remote target but with no success (the same output each time, only with an empty remote path I get
scp: ambiguous target
instead)(Running SSH::LibSSH:ver<0.9.1> on MoarVM Rakudo 2022.07, Fedora 36, x86_64)