Page 1 of 1

RSA key error

Posted: Wed Mar 04, 2009 6:51 am
by ramailango
my php file is
<?php
$output=shell_exec("sh autorun.sh");
echo "$output";
?>

my shellscript autorun.sh is
echo "enter"
result=`ssh root@192.xxx.xxx.xxx ls`
echo "$result"

When i run the autorun.sh in command prompt, it display
enter
airhead
airhead.tgz
anaconda-ks.cfg
Desktop

the above result is correct.

When i run the autorun.sh from above php file the following error will display
enter
RSA key fingerprint is 01:fe:fa:cb:63:ad:9c:11:69:67:90:ce:ea:2f:19:4a


How to solve this problem?