View Single Post
ישן 20-01-06, 07:52   # 19
שקד
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Dec 2005
מיקום: ירושלים
גיל: 39
הודעות: 659

שקד לא מחובר  

ציטוט:
נכתב במקור על ידי Ori The Man
טוב עשיתי כל מה ששצריך עכשיו זה עושה לי כזה דבר

Warning: ssh2_connect() [function.ssh2-connect]: Error starting up SSH connection(-2): Timeout waiting for banner in D:\wamp\www\file.php on line 11

Warning: ssh2_connect() [function.ssh2-connect]: Unable to connect to 0.0.0.0 in D:\wamp\www\file.php on line 11

Warning: ssh2_auth_password() expects parameter 1 to be resource, boolean given in D:\wamp\www\file.php on line 12

Warning: ssh2_exec() expects parameter 1 to be resource, boolean given in D:\wamp\www\file.php on line 14

וזה הקוד
PHP קוד:
<?php

$connection
=ssh2_connect('ip'22);
$con=ssh2_auth_password($connection'user''pass');

ssh2_exec($connection'command');

?>
נסה ככה:
PHP קוד:
$connection=ssh2_connect('ip'22);
ssh2_auth_password($connection'user''pass');


ssh2_exec($connection'command'); 
__________________
  Reply With Quote