SFTP with ruby cgi-bin

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

On Apr 6, 11:12 am, Andrew T. [email protected] 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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs