<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div>Indeed the need is more complicated, the code needs to talk to an agent at the ssh side whose behaviour can be unpredictable. So some kind of bidirectional pipe to ssh is needed to achieve this, it is more than just launching ssh commands. I have just now been prototyping with paramiko in python as well and discovered I also need a kind of unbuffered stream (non blocking io). <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Thanks</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new
york,times,serif; background-color: transparent; font-style: normal;">J. <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Tony Garnock-Jones <tonyg@ccs.neu.edu><br> <b><span style="font-weight: bold;">To:</span></b> jo <etaoinbe@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "users@racket-lang.org" <users@racket-lang.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, February 28, 2013 4:44 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [racket] looking for a simple ssh
library.<br> </font> </div> <br>On 2013-02-28 9:33 AM, jo wrote:<br>> I am looking for a simple ssh library a la net::snmp. The remote node<br>> does not have racket installed. I want to send and receive commands to<br>> the device.<br><br>I am working on a project that includes writing an implementation of<br>SSHv2. At the moment it's not quite usable as a client: I have yet to<br>implement the auth subprotocol, for one.<br><br>If Michael Wilber's suggestion of just using (system) doesn't work for<br>you, let me know and I'll see what I can do about polishing it up for<br>release.<br><br>(Incidentally, I've used (system) to launch ssh to start remote commands<br>before: the only sticking point for me was I needed to use the "-tt" flag:<br><br> (process (format "ssh -tt ~a '~a'" machine-name command))<br><br>... because I wanted my long-running job to be killed when the SSH<br>connection closed, rather than living on afterward; giving it
a<br>controlling TTY is important in that case.)<br><br>Regards,<br> Tony<br><br><br> </div> </div> </div></body></html>