What is the difference between
ssh host cmd and running
ssh host and then running the command inside a shell?
I tried started a server running the command:
ssh user@host "cd some/directory; ./run-server.sh"
The server starts and then abruptly dies. However, when I start the command by running:
ssh user@host cd some/directory ./run-server.sh
from inside the shell, the server starts without issue. How is the possible? My understanding of ssh was that these two invocations were indistinguishable.