RSA key error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ramailango
Forum Newbie
Posts: 1
Joined: Wed Mar 04, 2009 6:39 am

RSA key error

Post 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?
Post Reply