title: Paramiko and Pseudo-tty Allocation
body: <p>I'm trying to use Paramiko to connect to a remote host and execute a number of text file substitutions.  </p>
  
  <pre><code>i, o, e = client.exec_command("perl -p -i -e 's/" + initial + "/" 
                                + replaced + "/g'" + conf);
  </code></pre>
  
  <p>Some of these commands need to be run as sudo, which results in:</p>
  
  <blockquote>
    <p>sudo: sorry, you must have a tty to
    run sudo</p>
  </blockquote>
  
  <p>I can force pseudo-tty allocation with the -t switch and ssh.</p>
  
  <p>Is it possible to do the same thing using paramiko?</p>