problem:run ssh via a cgi script on apache

From: mbasil (mbasil@it.teithe.gr)
Date: 02/03/03


From: mbasil@it.teithe.gr (mbasil)
Date: 2 Feb 2003 17:11:37 -0800

I have a script written in expect from which i spawn ssh and after
execute some commands.When i execute the script in command line,it
runs succesfully and outputs the rights results.The problem is that i
want to run this script via apache server as cgi.I tried that but i
got this error message in my browser:

Could not create directory '/var/www/.ssh'. The authenticity of host
'localhost (127.0.0.1)' can't be established. RSA key fingerprint is
07:6d:85:a6:2b:8b:1f:3c:fd:f6:d4:a1:29:83:2d:94. Are you sure you want
to continue connecting (yes/no)? Yes Failed to add the host to the
list of known hosts (/var/www/.ssh/known_hosts). mbasil@localhost's
password: Permission denied, please try again. mbasil@localhost's
password: (yes/no)? Yes Failed to add the host to the list of known
hosts (/var/www/.ssh/known_hosts). mbasil@localhost's password:

I have read ssh man pages but it didn't help me to find a solution.I
think that the problem is that the server runs-spawns the cgi script
under the default user apache.What i must do?

Thanx for any help.



Relevant Pages

  • Re: Help with a socket script execution
    ... necessary execute the socket server script from the console (#!/usr/ ... along with some PHP magic so the script doesn't die when the HTTP ... only execute something and finish it execution or wait until the ... The reason I suggest a new host is because you DO have a problem with this host. ...
    (comp.lang.php)
  • Re: Execute a remote script EXAMPLE
    ... Select records, write a letter, have FM mail merge and the HOST manages the ... When you execute a remote script, it actually works on your file, not the ...
    (comp.databases.filemaker)
  • Re: Will Linux become as vulnerable as MS ??
    ... > beeing vulnerable to viruses. ... > that they know are executable, and execute intentionally. ... >> Linux, each distro is a little different, and even within the distro, ... > Since clicking on a script is easier than typing it's name, ...
    (comp.os.linux.security)
  • Re: Small, understandable Forth
    ... intelligence from the word to the script. ... niclos file script files, but only in the directory in which they are ... \ there are required support vocabularies, ... RDROP EXECUTE DEFINITIONS; ...
    (comp.lang.forth)
  • Re: [Full-Disclosure] ColdFusion cross-site scripting security vulnerability of an error page
    ... > execute the arbitrary javascript and HTML code which the attacker ... > It is possible to display the contents transmitted from the client ... > cross-site scripting attack can be executed. ... the script will be executed when the script for an attack ...
    (Full-Disclosure)