On 4/16/07, Phillip Gawlowski <cmdjackryan / googlemail.com> wrote:
> Raj Sahae wrote:
>
> > I apologize for this having become a little off topic.  Can anyone
> > confirm what Bill is saying?  How would I go about getting those
> > specific binaries, and then how would I use them?
>
> Go to the Cygwin homepage, and download the installer. Select what you
> need (a bit of familiarity with Linux wouldn't hurt), and wait for the
> download and installation to complete.
>
> You can then redistribute it as long as you confirm to the GPL (or write
> up installation instructions, if you don't feel safe), and / or just
> redistribute the installer. It's the GPL, so you should be safe if you
> don't modify the Cygwin source and redistribute that.
>
> >  Is there a way to
> > integrate them with ruby.  Could I create my own SSH gem or SSH module
> > somehow?
>
> There's already an SSH gem (gem install net-ssh). You need Cygwin only
> to setup an SSH server on your side, and don't have to hack it up that much.
>
> I have no idea, though, if this SSH server can interact with stuff
> outside of Cygwin, or if you have to compile Ruby within the Cygwin
> environment.
>
> --
> Phillip "CynicalRyan" Gawlowski
> http://cynicalryan.110mb.com/
> http://clothred.rubyforge.org
>
> Rules of Open-Source Programming:
>
> 22. Backward compatibility is your worst enemy.
>
> 23. Backward compatibility is your users' best friend.
>

Ruby Net::SSH can do port forwarding,

http://net-ssh.rubyforge.org/chapter-6.html

Although I am not sure, if it will fit your needs.