[ANN] Net::SSH 0.5.0

Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.

   Project page: http://rubyforge.org/projects/net-ssh
   User Manual: http://net-ssh.rubyforge.org
   API Docs: http://net-ssh.rubyforge.org/api

This release is the result of two months' refactoring. Net::SSH is now dependent upon Needle 1.2, and is now much more internally consistent, unit testable, maintainable, and extendable. Yay!

Note: this release does not include SFTP support. SFTP support is now being developed separately (Net::SFTP) and will see an initial release a week or two after Thanksgiving. This release also does not include the rb-keygen utility. That (and other command-line utilities) will be released separately, as well. If you need SFTP support, you are encouraged to continue using Net::SSH 0.1.0.

The API has changed! Scripts written for Net::SSH 0.1 and earlier will almost certainly not work unmodified with 0.5. Although there have been LOTS of changes internally, the primary external changes are:

   1) Net::SSH::Session#main_loop is renamed to Net::SSH::Session#loop.

   2) Net::SSH::Session#exec is gone. Use Channel#exec (with Session#loop) instead.

   3) Port forwarding and interacting with remote processes now use different interfaces. If your scripts use these features, see the relevant sections in the revised Net::SSH users manual. (These features are easier to use, now.)

As before, if you are using a version of Ruby < 1.8.2, you'll need to grab an updated snapshot of the OpenSSL module for Ruby. (You can get it either from a recent Ruby source tarball, or from the Net::SSH downloads page, though the recent Ruby tarball will have the more recent version.)

···

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis

I think I've following the instructions at
http://www.rubygarden.org/ruby?RubyTkOnOSX
to get Tk installed for use with Mac OS X.
However, when I run a ruby program that uses Tk I get
/usr/local/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- tcltklib
(LoadError)
        from /usr/local/lib/ruby/1.8/tk.rb:7

Does anyone have a guess as to what I've done wrong?

···

--
R. Mark Volkmann
Partner, Object Computing, Inc.

Is getting private keys from pageant (putty agent) on Windows part of the feature list? Is it likely to happen in a reasonable period of time or not?

Guillaume.

···

Le 23 nov. 04, à 15:42, Jamis Buck a écrit :

Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.

  Project page: http://rubyforge.org/projects/net-ssh
  User Manual: http://net-ssh.rubyforge.org
  API Docs: http://net-ssh.rubyforge.org/api

This release is the result of two months' refactoring. Net::SSH is now dependent upon Needle 1.2, and is now much more internally consistent, unit testable, maintainable, and extendable. Yay!

Hi,

···

From: "R. Mark Volkmann" <mark@ociweb.com>
Subject: Tk on Mac OS X
Date: Wed, 24 Nov 2004 23:48:59 +0900
Message-ID: <1101306214.41a499660cc0f@mail.ociweb.com>

However, when I run a ruby program that uses Tk I get
/usr/local/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- tcltklib
(LoadError)
        from /usr/local/lib/ruby/1.8/tk.rb:7

You failed to compile tcltklib.so.
Although I don't know the reason, maybe the trouble is based on
"there are no Tcl/Tk libraries" or "cannot find Tcl/Tk libraries".
You may have to give some configure options to determine the names
and pathes of Tcl/Tk libraries.

# Don't forget "make distclean" to delete the old Makefile.

I think I've following the instructions at
http://www.rubygarden.org/ruby?RubyTkOnOSX
to get Tk installed for use with Mac OS X.

I have no experience in MacOS X.
So I may be wrong, but the feature of extconf.rb described on the page
is probably included to the current version (e.g. 1.8.2-preview3) of
extconf.rb.
Please try the current (NOT replace!) extconf.rb.
To use Tcl/Tk framework, you must give --enable-mac-tcltk-framework
option when do configure.
--
                                  Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)

Guillaume Marcais wrote:

Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.

  Project page: http://rubyforge.org/projects/net-ssh
  User Manual: http://net-ssh.rubyforge.org
  API Docs: http://net-ssh.rubyforge.org/api

This release is the result of two months' refactoring. Net::SSH is now dependent upon Needle 1.2, and is now much more internally consistent, unit testable, maintainable, and extendable. Yay!

Is getting private keys from pageant (putty agent) on Windows part of the feature list? Is it likely to happen in a reasonable period of time or not?

Guillaume.

I currently do not plan to support pageant, primarly because I am not a windows user and so have neither the motivation to implement it, nor the immediate know-how of how to interact with the pageant process. (FWIW, I once downloaded the putty sources to see what it would take to interface with pageant, but it appeared to be non-trivial).

That said...patches are always welcome. :slight_smile: If no one steps up and accepts that challenge, I *may* (depending on a variety of circumstances) attempt to implement pageant support, contrary to what I stated in the first sentence of this reply. Still, don't hold your breath.

- Jamis

···

Le 23 nov. 04, à 15:42, Jamis Buck a écrit :

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis

Does the tk/ruby in fink package work for you?
There are patches updated from 1.6.7 but I do not use Tk so there may be
problems.

Thanks

Michal Suchanek

···

On Thu, Nov 25, 2004 at 01:28:06AM +0900, Hidetoshi NAGAI wrote:

Hi,

From: "R. Mark Volkmann" <mark@ociweb.com>
Subject: Tk on Mac OS X
Date: Wed, 24 Nov 2004 23:48:59 +0900
Message-ID: <1101306214.41a499660cc0f@mail.ociweb.com>
> However, when I run a ruby program that uses Tk I get
> /usr/local/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- tcltklib
> (LoadError)
> from /usr/local/lib/ruby/1.8/tk.rb:7

You failed to compile tcltklib.so.
Although I don't know the reason, maybe the trouble is based on
"there are no Tcl/Tk libraries" or "cannot find Tcl/Tk libraries".
You may have to give some configure options to determine the names
and pathes of Tcl/Tk libraries.

# Don't forget "make distclean" to delete the old Makefile.

> I think I've following the instructions at
> Captcha
> to get Tk installed for use with Mac OS X.

I have no experience in MacOS X.
So I may be wrong, but the feature of extconf.rb described on the page
is probably included to the current version (e.g. 1.8.2-preview3) of
extconf.rb.
Please try the current (NOT replace!) extconf.rb.
To use Tcl/Tk framework, you must give --enable-mac-tcltk-framework
option when do configure.