ssh /dev/null question
I want to run some commands via SSH, but I don't care about the (stdio) output of the commands.
I'm wondering if I do:
ssh -l <user> <host> <command> >/dev/null
where is the output killed - is it propagated back to my machine, then dumped?
Or is it dumped at the remote host?
I'd prefer the latter, but not sure if this is the case.
ps sorry if this is the wrong forum :(
The output will be local. To test, change /dev/null to /tmp/ssh_output_test and you'll find ssh_output_test on your localhost machine instead of remote host.
To output error to remote host, you probably need to instruct <command> to output to /dev/null on the remote machine, that is, the redirect becomes part of the <command>.