Re: Logging with ForceCommand and SCP

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Wed, Mar 15, 2017 at 12:24 PM, Darren Tucker <dtucker@xxxxxxxxxx> wrote:
> On Wed, Mar 15, 2017 at 9:39 PM, Oliver Graute <oliver.graute@xxxxxxxxx> 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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux