Hallo zusammen, habe SSH "anscheinend" korrekt installiert, auch für PHP, denn in der phpinfo() wird mir SSH als Modul angezeigt. Leider kommt im Apache beim Aufruf einer ssh2_connect() Funktion immer folgender Fehler:
	
		
Folgender PHP-Code:
	
Das Skript bricht ab, ohne eine Ausgabe. Hat jemand eine Idee, woran dies liegen könnte?  
							
						
					
			
			
				[...] [notice] child pid 28623 exit signal Segmentation fault (11)  
[...] [notice] child pid 28639 exit signal Segmentation fault (11)
	[...] [notice] child pid 28639 exit signal Segmentation fault (11)
PHP-Code:
	
	
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL);
/* Notify the user if the server terminates the connection */
function my_ssh_disconnect($reason, $message, $language) {
  printf("Server disconnected with reason code [%d] and message: %s\n",
         $reason, $message);
}
$methods = array(
  'kex' => 'diffie-hellman-group1-sha1',
  'client_to_server' => array(
    'crypt' => '3des-cbc',
    'comp' => 'none'),
  'server_to_client' => array(
    'crypt' => 'aes256-cbc,aes192-cbc,aes128-cbc',
    'comp' => 'none'));
$callbacks = array('disconnect' => 'my_ssh_disconnect');
echo 'Ja';
$connection = ssh2_connect('IP-Nummer', 22, $methods, $callbacks);
if (!$connection) die('Connection failed');
echo "Connected with $ssh_host<br>\n";
?>
 
							
						 
          


 
 
Kommentar