Conectar em sftp
01/07/2014
0
Estou tentando conectar em um sftp através do amfphp + flex, mas não estou conseguindo....
tentei assim :
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
mas dá erro
(Object)#0
message = "faultCode:INVALID_AMF_MESSAGE faultString:'Invalid AMF message' faultDetail:'
Fatal error: Call to undefined function ssh2_connect()
como faço ?
tentei assim :
$connection = ssh2_connect('shell.example.com', 22);
ssh2_auth_password($connection, 'username', 'password');
$sftp = ssh2_sftp($connection);
mas dá erro
(Object)#0
message = "faultCode:INVALID_AMF_MESSAGE faultString:'Invalid AMF message' faultDetail:'
Fatal error: Call to undefined function ssh2_connect()
como faço ?
Robson Morais
Curtir tópico
+ 0
Responder
Posts
Clique aqui para fazer login e interagir na Comunidade :)