[[!comment format=mdwn username="http://joeyh.name/" nickname="joey" subject="comment 5" date="2013-03-29T16:47:28Z" content=""" Sounds like it may not provide a POSIX shell for interactive use (based on the error message, I think it's csh), in which case this could work: ssh $HOSTNAME -n 'sh -c \"echo git-annex-probe loggedin;if which git-annex-shell; then echo git-annex-probe git-annex-shell; fi;if which rsync; then echo git-annex-probe rsync; fi\"' """]]