Host Key Verification failed - ssh via cgi
Darren Tucker
dtucker at zip.com.au
Fri Oct 18 21:56:44 EST 2002
Donny Cornelius wrote:
> i have a cgi (on host1) that executes ssh (as userxyz) to a remote server (host2), executes a command to retrieve some data and outputs them to the local browser.
>
> on host1:
>
> #!/usr/bin/perl -w
> ...
> $output = `/usr/local/bin/ssh -l userxyz -x host2 ls -l`
> ...
>
> but i get "Host Key Verification failed" on my apache's error_log. i can do it on the command line, it only fails when i run it via the cgi.
Is the CGI running as "nobody" or are you using suEXEC? Can you as "-v
-v -v" to the ssh commandline to get some debugging info? Maybe $HOME
isn't set?
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev
mailing list