Logging with ForceCommand and SCP
Darren Tucker
dtucker at zip.com.au
Wed Mar 15 22:24:24 AEDT 2017
On Wed, Mar 15, 2017 at 9:39 PM, Oliver Graute <oliver.graute at gmail.com> wrote:
[...]
> protocol error: expected control record
Most likely your script is producing some output at the end which scp
tries and fails to interpret.
Try exec'ing scp rather than just calling it to make sure your script
doesn't do anything else.
--
Darren Tucker (dtucker at zip.com.au)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860 37F4 9357 ECEF 11EA A6FA (new)
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list