Does anyone know of a Net::SSH class or of any code that
will let someone send data via SSH?
Thanks,
···
–
Bil
Does anyone know of a Net::SSH class or of any code that
will let someone send data via SSH?
Thanks,
–
Bil
If you only need your code to run on a UNIX system, you could open a
pipe to the ‘ssh’ command. This isn’t portable and may depend on how
the ‘ssh’ command processes its command line, though. 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.
(Ick. My ‘solution’ is sounding worse the more I talk about it.)
On Tue, Jul 09, 2002 at 09:09:02AM +0900, Bil Kleb wrote:
Does anyone know of a Net::SSH class or of any code that
will let someone send data via SSH?
… just to second this request: I’m in need of the exact same thing
for a small project that I am using to get familiar with Ruby
(unfortunately needs to work on Windows machines, too).
-M.
On Tue, 09 Jul 2002 00:12:45 GMT, Bil Kleb W.L.Kleb@larc.nasa.gov wrote:
Does anyone know of a Net::SSH class or of any code that
will let someone send data via SSH?
… just to second this request: I’m in need of the exact same thing
for a small project that I am using to get familiar with Ruby
(unfortunately needs to work on Windows machines, too).
Have you considered using OpenSSL ? If the need of that project is to
send some data encrypted (and authenticated) over Internet (for example)
OpenSSL is the right tool for accomplishing this task, IMHO.
W.
–
Wejn <lists+rubytalk(at)box.cz>
(svamberk.net’s Linux section, fi.muni.cz student, linuxfan)
Bored? Want hours of entertainment? <<< Just set the initdefault to 6! <<<
This is exactly what command-restricted passwordless RSA/DSA keys are
for.
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.
Injustice anywhere is a threat to justice everywhere.
– Martin Luther King, Jr.
Thomas Hurst tom.hurst@clara.net writes:
This is exactly what command-restricted passwordless RSA/DSA keys
are for.
Or the agent.
The agent rocks.
–
Josh Huber