From: Mark Thomas Date: 2009-04-08T20:55:04+09:00 Subject: Re: SFTP with ruby cgi-bin On Apr 6, 11:12 am, Andrew Thorp wrote: > When I execute the ruby manually, it works great. > > When I run it over http, no cake. > > Basically, when I run the ruby it will connect to sftp and have no > problems, but when I navigate to the cgi-bin through my browser, I get > this error: > > !ruby/exception:Net::SSH::AuthenticationFailed A CGI app is run as the web server user. So you'll need to make sure the web server user can connect. Try logging in as the web server user and establish the keys necessary to perform the SSH.