title: how to ssh a loop over several commands
body: <p>I am new to ssh so forgive me if my questions are trivial..i need to make a a remote computer execute a set of commands several times so i was thinking about making a loop using ssh ..the problem is i don't know do i save those commands in a file and loop on that file or can i like save them in ssh and just call them ..i am really troubled..also if i make a loop like this </p>
  
  <pre><code>i= 10
  while i!= 0 
  execute command.text file ???
  i--
  </code></pre>
  
  <p>How to i tell it to execute the file ?</p>