?php $con = ssh2_connect("192.168.8.35", 22); ssh2_auth_password($con,"root","root123"); if(ssh2_sftp($con)) { echo "connected to 192.168.8.35"; } else { echo "not connected"; } ?
$ip = "192.168.8.35"; $con = ssh2_connect($ip, 22); ssh2_auth_password($con, "root", "root23"); if(ssh2_sftp(con)) { echo 'Connected to '.$ip; } else { echo 'Not Connected'; } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)