[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

SFTP with ruby cgi-bin

Andrew Thorp

4/6/2009 3:12:00 PM

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

Please somebody help
--
Posted via http://www.ruby-....

1 Answer

Mark Thomas

4/8/2009 11:51:00 AM

0

On Apr 6, 11:12 am, Andrew Thorp <and...@gladhandle.com> 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.