var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: SSH error with PHP
i got the following error when i run a PHP script which executes ssh command.
May i know what is the reason for that?
Pseudo-terminal will not be allocated because stdin is not a terminal.
My php does the following.
$cmd = "ssh server.com \"myscript.sh \"";
it will print out the result of $cmd then.
myscript.sh is a script which executes a series of ssh command.
ssh A.com "ls -l file1",
ssh B.com "ls -l file1",
Does your script have enough permission to execute a ssh command?
I doubt if apache has this much permission.
But am not sure about this. Couldyou tell me which command or function are you using to execute this script. May get a solution or idea about what to be done or waht is wronge.
$cmd="ssh myserver.com \"/home/myscript.sh \"";
<FORM NAME=testform METHOD=POST ACTION=<?php echo $_SERVER[PHP_SELF];?>>
<textarea name=result_text rows=50 cols=100>
<input type=submit name=btn value=submit>
if i use ssh with -t option, the problem is solved, but this time with
ssh myserver1.com "ls -l mydirectory/* >> lsresult";
ssh myserver2.com "wc -l mydatafile >> wcresult";
Host key verification failed.
if i take off teh -t option, i have this pseudo-terminal error..