From: Dave Lilley Date: 2009-12-26T21:06:17+09:00 Subject: Re: pasing data between 2 win XP boxes via internet Brian Candler wrote: > 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. Brian, Many thanks for the help. Can you help with a PuTTy (plink & ruby) connection? my main issue is I am under windows unsure of the PC's hostname. IE is the hostname = to the PC name (with linux localhost = hostname for the box your on). regards, Dave. -- Posted via http://www.ruby-forum.com/.