[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Desperate help needed with SSH

Brian Candler

5/19/2009 1:50:00 PM

unknown wrote:
> I have a small problem thats driving me crazy. I am trying to connect to
> multiple ssh servers (1 at a time), run a number of commands and capture
> the output to a unique file for each server.

Try using Net::SSH::Telnet (which is something I wrote to talk to
routers). It hides the Net::SSH API behind a simple Net::Telnet one, and
as a side benefit, you can write code which connects transparently using
either telnet or ssh.

Alternatively, looking at the Net::SSH::Telnet code may show you how to
drive Net::SSH successfully.

HTH,

Brian.
--
Posted via http://www.ruby-....