title: Python Fabric: How to handle arbitrary remote shell prompt for input?
body: <p>This is related to this <a href="https://stackoverflow.com/questions/2246256/python-fabric-how-to-answer-to-keyboard-input">question</a> here, but with a slight twist: instead of just passing 'yes' or 'no', I need Fabric to pass an arbitrary string to the remote shell.</p>
  
  <p>For instance, if the remote shell prompts for 'what is your name?' then I need to feed it 'first,last'.</p>
  
  <p>Clarification: I know I said arbitrary input, but I was really <a href="http://twitter.com/jaysern/status/12308758391" rel="nofollow noreferrer">trying to use it for the SSH key passwd prompt when I try to do a git pull</a>.</p>
  
  <p>Update #1: Got a response from Jeff Forcier @bitprophet</p>
  
  <ul>
  <li><p><a href="http://twitter.com/bitprophet/status/12309847173" rel="nofollow noreferrer">that’s like the #1 wart right now :( Either tunnelling to send a key agent out-of-band, or remote prompting, is needed.</a></p></li>
  <li><p><a href="http://twitter.com/bitprophet/status/12310997973" rel="nofollow noreferrer">I meant adding support <em>for</em> those things in Fabric, is what we need to do to get network-borne git ops working</a></p></li>
  <li><p><a href="http://twitter.com/bitprophet/status/12311051050" rel="nofollow noreferrer">Adding an easy way to kick off an OOB ssh agent-friendly tunnel is going to be easier/faster, most likely. Soon probably</a></p></li>
  </ul>