sshexec

Description: SSH wrapper that makes it easy to run commands directly in the SSH command
Status: Feature complete (subject to updated listing of ssh(1) options)
Source: https://git.maandree.se/sshexec
Latest release: 1.0
License: ISC License (Internet Systems Consortium license)
Written in: C (ISO C99)

sshexec is a wrapper for SSH that makes it easy to run commands directly in the SSH command. ssh(1) joins the command and all arguments twogather with a space separating each of the and lets the remote shell parse it as shell code to execute (separate argument operands are just there so you don't have to put quotes in when writing the command), whereas sshexec forces the remote shell to treat the command and each passed argument as separate arguments and execute it as a normal non-builtin command, without interpreting it as shell code. sshexec does depend on the remote shell being fairly similar to sh(1posix). sshexec does also let the user select the directory the command shall be executing in.