Passwordless SSH using cgi-perl script

Posted by AV on Stack Overflow See other posts from Stack Overflow or by AV
Published on 2010-05-24T18:31:54Z Indexed on 2010/05/24 18:41 UTC
Read the original article Hit count: 215

Filed under:
|
|
|
|

Hello,

This is my first shot at trying out cgi-perl scripts. I have SSH keys set up between my (root user) local machine and a remote machine. I'm trying to run a command on the remote box and display the output on a webpage hosted from my local machine. The script runs fine from command line however, it throws SSH key error when called from the webpage because the user running the script is apache and not root. Is there a way to get around this issue?

© Stack Overflow or respective owner

Related posts about linux

Related posts about apache2