title: How to cd to a directory on remote machine and run the script present in that directory
body: <p>When I do this</p>
  
  <pre><code>ssh host@someip "cd /target &amp;&amp; ls"
  </code></pre>
  
  <p>the files on remote machine are displayed.</p>
  
  <p>Now, I am trying to run a file on the remote machine.</p>
  
  <pre><code>ssh host@someip "cd /target &amp;&amp; ./file.sh"
  </code></pre>
  
  <p>When i do this it reaches the folder named target on the remote machine but the file is executed on local machine. How to make file.sh also run on remote machine ?</p>