--- alx-src/trunk/alx-web/index.php 2008/06/04 23:21:44 431 +++ alx-src/trunk/alx-web/index.php 2008/06/04 23:27:34 432 @@ -129,16 +129,13 @@ { $pubkey = mysql_query('select public_key from ssh_auth_clients where serial='.$c['serial'].''); while ($row = mysql_fetch_row ($pubkey)) { - $sshcmd = "/usr/bin/ssh"; - $home = "/home/httpd"; - # schreiben der .ssh/known_hosts file mit dem public rsa key des client, # um die "yes" abfrage zu vermeiden $hostfile = fopen ($home."/.ssh/known_hosts","w"); fwrite($hostfile,$c['ip']." ".$row[0],strlen($row[0])+strlen($c['ip'])+1); fclose($hostfile); - $osver = exec($sshcmd.' -l root '.$c['ip'].' \'os_ver=$(