man(1) sshc man page man(1) NNAAMMEE sshc - run a command remotely using ssh SSYYNNOOPPSSIISS sssshhcc uusseerr@@hhoosstt[[::ddiirr||==]] ccoommmmaanndd aarrgg11...... DDEESSCCRRIIPPTTIIOONN sssshhcc allows you to run a command remotely using ssh. Like ssuuddoo and unlike the normal sssshh command, it runs the command directly, not via the shell. It does not require you to escape shell metacharacters. sssshhcc is used by aarrccss.. EEXXAAMMPPLLEESS To run a command in your remote home directory. sshc nipl.net cat .bashrc To run a command in the same directory on the remote host: sshc nipl.net= pwd sam@hugo:~/code/arcs$ sshc nipl.net= pwd /home/sam/code/arcs To log in as sam, and chdir to a specfied directory. sshc sam@nipl.net:/etc cat passwd EENNVVIIRROONNMMEENNTT ARCS_SSH, SSH the command to use for ssh, e.g. SSH=fsh makes it go fast, especially with the -f option. $ARCS_SSH is used if it exists, else $SSH, else ssh. Get fsh from: http://sam.nipl.net/code/fsh/fsh.tgz AAUUTTHHOORRSS Sam Watkins (swatkins@fastmail.fm) SSEEEE AALLSSOO aarrccss sssshh ffsshh 0.1 18 April 2009 man(1)