[ANN] Net::SSH 0.5.0

J

Jamis Buck

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.)
 
R

R. Mark Volkmann

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?
 
H

Hidetoshi NAGAI

Hi,

From: "R. Mark Volkmann" <[email protected]>
Subject: Tk on Mac OS X
Date: Wed, 24 Nov 2004 23:48:59 +0900
Message-ID: said:
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.
 
G

Guillaume Marcais

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!

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.
 
J

Jamis Buck

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


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. :) 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
 
M

Michal 'hramrach' Suchanek

Hi,

From: "R. Mark Volkmann" <[email protected]>
Subject: Tk on Mac OS X
Date: Wed, 24 Nov 2004 23:48:59 +0900


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 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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top