Is there a security benefit running a command remotely via ssh as a local non-root user? In other words, is this actually more dangerous compared to executing the ssh command as non-root:
root@local:~# ssh user@remote "compromised_executable"
I'm assuming the local system isn't compromised and ssh
doesn't have any security issues.