From: "ara.t.howard" Date: 2008-11-08T04:03:38+09:00 Subject: Re: DRb + SSH On Nov 7, 2008, at 11:06 AM, Brian Candler wrote: > ssh lets you set up port forwarding in both directions. It works fine, > although of course you have to set up the ssh connection yourself > first. yeah looks like i might eat my words - hadn't played with that in a while but this works # the tunnel - ran from client ssh -L 4242:localhost:4242 -R 4243:localhost:4243 aragorn.globe.ucar.edu -N # the server require 'drb' DRb.start_service "druby://localhost:4242", %w( a b c ) puts DRb.uri DRb.thread.join # the client require 'drb' DRb.start_service 'druby://localhost:4243' remote_array = DRbObject.new_with_uri 'druby://localhost:4242' remote_array.each{|element| p element} i guess NAT is an issue, but this does seem to work - not sure how robustly - but it's promising ;-) put this up for posterity here: http://drawohara.com/post/58529480/ruby-drb-over-an-ssh-tunnel a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama