Another alternative is ‘expect’. There’s an implementation posted here:
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 ???
- Philip Mak (pmak@animeglobe.com) wrote:
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.