From: Josh Cheek Date: 2010-02-05T15:24:11+09:00 Subject: Re: Some noob questions --000e0cd1b6384d3a77047ed47f3b Content-Type: text/plain; charset=ISO-8859-1 On Thu, Feb 4, 2010 at 5:35 AM, Robert Klemme wrote: > On 02/04/2010 11:58 AM, John Ydil wrote: > >> Third question : After having the ip address, i need to make an ssh >> connection to this address. How can i get a variable to be usable in >> system("ssh $variable") ? >> > > > AFAIK there is also a SSL / SSH library for Ruby. You should probably look > into that as well. > > The book "Practical Ruby Gems" suggests net-ssh ( http://gemcutter.org/gems/net-ssh), and has a six page example of a simple use program that logs onto a remote server with SSH and uses Vim to edit a text file. It also has an example of net-sftp. (though one of those was outdated, I think the net-sftp version had changed) --000e0cd1b6384d3a77047ed47f3b--