in reply to Net:SSH from CGI Script

Keep in mind that scripts run from a web server run as the userid of the server (unless the setuid bit is set, and the server allows such things). It also may not be using the home directory you expect...

Update wait a minute -- Net::SSH doesn't even have a login method. Maybe you are using Net::SSH::Expect?

Replies are listed 'Best First'.
Re^2: Net:SSH from CGI Script
by kburns1969 (Novice) on Oct 02, 2009 at 04:07 UTC
    Yes I'm sorry. I am using Net:SSH:Expect. What information does the web server need and how can I fix it ? Thanks !
      I think you are going to need to post a code snippet. If you want to find out if it is a permissions issue, You should be able to simply run su - <web-user-id> from root (assuming it is on *nix/Linux), and try your script from the command line again.