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?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
If you not already have a restricted account, create one, create the SSH keys and add the commands that the user should be allowed to execute via I don't know about Perl, but normal you can specify which user should be logged in via SSH:
Update: Are you using the
(I just copied and pasted this code from |
|||||||||||||||||
|