I'm accessing a remote host via a jumpbox. I can easily access the remote host if I access it via an ssh shell:
ssh remoteHost
Last login: Tue Feb 16 12:56:26 2016 from 10.213.60.99
remoteHost:user:~$
but when I try to execute a command via the SSH command line option, I always get:
ssh remoteHost ls
"ls" isn't allowed to be executed.
Killed by signal 1.
I can successfully run the above on Unix servers that I have direct access to, but all hosts that are behind a jumpbox give the same problem (I'm not sure the jumpbox is the issue though).
Is this a setting that can be configured on the server, i.e. "allow remote ssh commands" or something similar?
FWIW, I did have a look at How to enable using commands on remote host using ssh without password?, but I'm pretty sure my problem is not related to quoting as the only answer on that question seems to indicate.