Distributed Ruby

I’m writing a program which is supposed to be a kind of
client/server-architecture.

The user will start a client, the program will then determine if the
server should be run locally or remote. If remote, the program will
use ssh to connect to that computer and start the server. The client
will connect to the server and then do whatever it wants to do. At
the moment this works just fine locally, but not remote.

Another problem is firewalls, so what I wants do is just use the
ssh-socket for all communications (the data will then be encrypted
which also would be a nice thing).

I’m not quite sure how druby works, is there any way to get druby to
use the ssh-socket? I notice the last version of druby got some
ssl-support, but this wouldn’t solve the problem with connecting to
the remote computer in the first place?

Any hints or suggestions to how to solve this problem?

···


siri

It just runs over a TCP port of your own choosing. Hence you can use ssh
port forwarding to redirect your traffic over the ssh tunnel.

Cheers,

Brian.

···

On Tue, Apr 08, 2003 at 11:13:47PM +0900, Siri Spjelkavik wrote:

I’m not quite sure how druby works, is there any way to get druby to
use the ssh-socket?

Siri Spjelkavik wrote:

I’m not quite sure how druby works, is there any way to get druby to
use the ssh-socket? I notice the last version of druby got some
ssl-support, but this wouldn’t solve the problem with connecting to
the remote computer in the first place?

I know I’ve done that but I don’t remember the incantation. Try man ssh.
Look for the -L and -R options. I didn’t try any ssl libs from ruby, but
it was pretty easy just to run ssh to set up the secure socket.