note 88391 added to function.ssh2-auth-password
| From: | mataxetos at hotmail dot es | Date: | Thu, 22 Jan 2009 05:33:11 +0000 |
| Subject: | note 88391 added to function.ssh2-auth-password | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149642@lists.php.net to get a copy of this message | ||
//Obtengo datos de la bdd
$id = $_GET['id'];
$seleccio = "SELECT * FROM servers WHERE id = '$id'";
$resultat = mysql_query($seleccio);
$filaResultat = mysql_fetch_array($resultat);
//Cargo las variables con los datos recogidos
$nombre = $filaResultat[fuser];
$pass = $filaResultat[fpass];
$vip = $filaResultat['vip'];
//Hago la conexion al servidor
$connection = ssh2_connect("$vip", 22);
if (ssh2_auth_password($connection, "$nombre", "$pass")) {
ERROR:
Warning: ssh2_auth_password() [function.ssh2-auth-password]: Authentication failed for pere1 using
password in /opt/lampp/htdocs/ventrilo/start.php on line 52
Imposible Conectar con SSH2
PROBLEM:
the problem is in the $ pass, if I do I take the data from the database, it does not work, but if I
write the password if it works .. Why?
----
Server IP: 80.64.47.13
Probable Submitter: 89.7.60.132
----
Manual Page -- http://www.php.net/manual/en/function.ssh2-auth-password.php
Edit -- https://master.php.net/note/edit/88391
Del: integrated -- https://master.php.net/note/delete/88391/integrated
Del: useless -- https://master.php.net/note/delete/88391/useless
Del: bad code -- https://master.php.net/note/delete/88391/bad+code
Del: spam -- https://master.php.net/note/delete/88391/spam
Del: non-english -- https://master.php.net/note/delete/88391/non-english
Del: in docs -- https://master.php.net/note/delete/88391/in+docs
Del: other reasons-- https://master.php.net/note/delete/88391
Reject -- https://master.php.net/note/reject/88391
Search -- https://master.php.net/manage/user-notes.php