SFTP with ruby cgi-bin

A

Andrew Thorp

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
 
M

Mark Thomas

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top