Net::SSH?

Another alternative is ‘expect’. There’s an implementation posted here:

http://www.rubygarden.org/ruby?RExpect

Regards,

Dan

···

-----Original Message-----
From: Thomas Hurst [mailto:tom.hurst@clara.net]
Sent: Tuesday, July 09, 2002 7:46 AM
To: ruby-talk@ruby-lang.org
Subject: Re: Net::SSH ???

You’d also have to create a virtual terminal because most
implementations of SSH (e.g. both ssh.com and openssh.org) insist on
reading the password from a terminal.

This is exactly what command-restricted passwordless RSA/DSA keys are
for.