Forum: Ruby SFTP with ruby cgi-bin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Andrew T. (Guest)
on 2009-04-06 19:12
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
Mark T. (Guest)
on 2009-04-08 15:55
(Received via mailing list)
On Apr 6, 11:12 am, Andrew T. <removed_email_address@domain.invalid> 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.
This topic is locked and can not be replied to.