sh -c 'echo hello ; echo world'
Works fine on both host and remote machine, with the output of:
hello
world
but when I do
ssh username@remote sh -c 'echo hello ; echo world', then the output is:
world
Why did the command eat my first echo hello command?