<div dir="ltr">Hello! I&#39;m trying to implement the example in the Conch tutorial (<a href="http://twistedmatrix.com/projects/conch/documentation/howto/conch_client.html">http://twistedmatrix.com/projects/conch/documentation/howto/conch_client.html</a>). with some modifications.<br>
<br>I want to do the following:<br><br>1) Connect to a remote machine using a private key (no password) without knowing the public key<br>2) Transfer over some files<br>3) Issue a series of non-interactive commands (to fire up the scripts I transferred over)<br>
4) Close the connection<br><br><br>Step 2) I can easily do with a single non-interactive subprocess.Popen() call to SCP; if there was a way to do it in pure Twisted-Python that would be great, but i&#39;m not too worried about that.<br>
<br>Step 1) Is really bugging me here; I can&#39;t seem to strip the need for foreknowledge of the public key from the script. I can&#39;t easily programmatically access that information in my use case. I do however have ready access to the private key and fingerprint for verification. My modified tutorial scripts just vomit.<br>
<br>Step 3) Is a just a little annoying; The provided tutorial only issues one command and reads the stdout.&nbsp; I don&#39;t care about stdout in my use-case, but i do care about issuing a series of commands. i could just issue one long command with the indivudal subcommands seperated by semicolons (cat blah; start-script myscript; [etc]) but i&#39;m wondering for curiosity/cleanliness&#39; sake if there&#39;s a way of seperating the commands.<br>
<br>Any help would be much appreciated =]<br><br>Regards,<br><br>Pumpkin<br></div>