Quantcast
Channel: VMware Communities : Discussion List - VMware ESXi 5
Viewing all articles
Browse latest Browse all 20614

Esxi 5 PHP SSH2 Connection

$
0
0

<?php

 

$host="ipadress";
$port="22";
$user="root";
$pass="12345678ab";

 

if($connect=ssh2_connect($host, $port)){
    echo "Connection Completed!";
} else {
    echo "Connection Failed!";
}

 

if($sifre=ssh2_auth_password($connect,$user,$pass)){
    echo "Authentication Completed!";
} else {
    echo "Authentication Failed!";
}

 

?>

 

 

İ'm put the right logindata into, on esxi 5.0 host the error is: "Authentication Failed!"

 

Although i can login on boths host with my Putty Client.


Viewing all articles
Browse latest Browse all 20614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>