From: Phlip Date: 2008-08-03T03:23:53+09:00 Subject: Re: Read file over SSH Shashank Agarwal wrote: > Is there a way to read a file over SSH? I looked at the net/ssh library > but couldn't put together a working code. Here's a wild guess - does it help? require 'net/ssh' require 'net/sftp' Net::SSH.start( 'myserver', 'myname', 'mypassword' ) do |session| session.sftp.connect do |sftp| sftp.get_file('path/filename', 'filename') end end -- Phlip