From: ChrisKaelin Date: 2007-03-21T02:40:05+09:00 Subject: Re: FTPS - How to connect with Ruby? On 20 Mrz., 17:42, "Jan Vesel�" wrote: > Hello, I'm new to Ruby and have the first problem I can't solve myself > after a lot of googling - connecting to a FTPS server (FTP AUTH TLS/ > SSL). > > - there's some library called chilkat, but it's not free (for this > little script it's really too expensive to solve it that way) > - ftpfxp library is targeted on fxp transfers, but it connects ok - > but it doesn't seem like a good library for normal ftp-related work > - the standard ftp library doesn't look like it has some support for > firewall/proxy to get there a program like TLSWrap between client and > server and solve the problem > - I found some curl library in prealfa state that could possibly help > me somehow - but it looks like the last solution when everything else > fails (prealfa, weird installation) > > Could you please give me a hint? Try net/sftp Module. With that I made a backup script on window$ using scp and/or sftp, because rsync is not available on the server, I have to back up. net/sftp project: http://raa.ruby-lang.org/project/net-sftp/ Here's an example, how it's working: arr = Array.new Net::SFTP.start(@host, @user, @pass) do |sftp| handle = sftp.opendir(dir) items = sftp.readdir(handle) items.each do |item| arr.push(item) end sftp.close_handle(handle) end return arr For more infos you should check the project's page. Greetings Chris