Net::SSH is a pure Ruby implementation of the SSH2 client protocol.
http://rubyforge.org/projects/net-ssh
Lots of new goodness in 0.0.4. The ChangeLog has the full rundown, but here's a summary of the highlights:
* SSH exceptions, instead of RuntimeError
* Private keys should be loaded correctly now, even if they require a passphrase or have some other special header values.
* Support for interacting with processes executed on the remote host.
* Earlier OpenSSH servers (3.1p1, for example) are now supported.
* You can now specify the keys to use when authenticating.
It's probably getting to be time for me to stop adding features for a bit and document what I've already got. Expect some decent documentation in the next release.
Some interfaces are different in this version, so anticipate some minor borkage in your scripts.
Special thanks for this release go to Hal Fulton (who helped me hunt down the problem with earlier versions of OpenSSH servers) and Daniel Hobe, who submitted several great suggestions and who singlehandedly fixed the problem of some key files not loading correctly. Thanks!
Keep those suggestions (and patches!) coming!
Oh, and happy birthday to me. I'm 30 today.
···
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis
"I use octal until I get to 8, and then I switch to decimal."