title: How to return to the script once sudo is done
body: <p>I am on a server and running a script file that has following code.</p>
  
  <pre><code>ssh username@servername
  sudo su - root
  cd /abc/xyz
  mkdir asdfg
  </code></pre>
  
  <p>I am able to ssh... but then the next command is not working.. the script is not sudo-ing. any idea? </p>
  
  <p>Edit: Able to create a mech id and then do the things.. though still looking for the answer to above question :|</p>