title: How to run sudo with Paramiko? (Python)
body: <p>What I've tried:</p>
  
  <ol>
  <li><code>invoke_shell()</code> then <code>channel.send</code> <code>su</code> and then sending the password resulted in not being root</li>
  <li><code>invoke_shell()</code> and then <code>channel.exec_command</code> resulted in a "Channel Closed" error</li>
  <li><code>_transport.open_session()</code> then <code>channel.exec_command</code> resulted in not being root</li>
  <li><code>invoke_shell()</code> then writing to stdin and flushing it resulted in not being root</li>
  </ol>