Logging with ForceCommand and SCP

Oliver Graute oliver.graute at gmail.com
Wed Mar 15 23:09:29 AEDT 2017


On Wed, Mar 15, 2017 at 12:24 PM, Darren Tucker <dtucker at zip.com.au> wrote:
> 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.

you are right

-        ${SSH_ORIGINAL_COMMAND}
+       exec ${SSH_ORIGINAL_COMMAND}

solved the issue. Thx

Oliver


More information about the openssh-unix-dev mailing list