From: Brian Candler Date: 2009-12-26T18:26:08+09:00 Subject: Re: pasing data between 2 win XP boxes via internet Dave Lilley wrote: > I know i want to use net::SCP or one of the SSH family protocols, My > problem is i haven't been able to find a suitable sample code to look at > or use. SSH is a client-server protocol. However, unless it has changed since I lasted looked at it, Net::SSH only implements the client side of the protocol. That is, you can't write a ruby program to receive inbound SSH connections using this. So you options are: (1) Have a non-Ruby ssh server at one side of the connection. For example, install cygwin on one of the machines. (2) For a pure Ruby solution, use a non-SSH protocol. For example, implement a simple web server using Sinatra at one side, and then transfer files using GET and PUT from the other side (e.g. Net::HTTP or RestClient, or even open-uri) If you want this to be secure, then use HTTPS. -- Posted via http://www.ruby-forum.com/.