Corner-case warning: The <code>ls</code> command doesn't need to exist and/or could actually fail eventhough the ssh connection is fine.  I recommend using "<code>(exit 0)</code>" since that doesn't require anything except a bash-like shell on the remote end.