[Bug 2563] ssh bash -c drops arguments of the first command send to the remote.

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Apr 8 20:30:23 AEST 2016


Jakub Jelen <jjelen at redhat.com> changed:

           What    |Removed                     |Added
                 CC|                            |jjelen at redhat.com

--- Comment #1 from Jakub Jelen <jjelen at redhat.com> ---
It does not look like a bug. The `ssh` accepts single argument as an
command, even though everyone is misusing it to use more of them. From
manual page for ssh:

    ssh [...] [user@]hostname [command]

The correct wording of your command would be:

    ssh -n -x -T $remote "/bin/bash -c 'echo a b c'"

You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list