Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Bernhard GÃ¼nther
January 10, 2006, 6:09 pm
rate this thread
PhP-Version is 4 on a FreeBSD-System using apache.
Got a problem using ssh2.sftp.
Installed correctly (libssh2, ssh2.so-module).
Connecting with publickey works, sftp subsystem-connect works too:
$sshconn= ssh2_connect ('myhostname',22);
$result = ssh2_auth_pubkey_file ($sshconn, 'user',
'include/.ssh/id_rsa.pub', 'include/.ssh/id_rsa' );
$sftp = ssh2_sftp($sshconn);
sftp-subsystem itself is working, the following works too:
but if I start using the ssh2.sftp-things is wont get any further:
in szenario I get a
Warning: mkdir(ssh2.sftp:///home/meee/NEWDIR2): No such file or
Also fopen will not work and wont produce an error.
Has anyone working this?
I also tried any combinations of
with $sftp:22 , user:pass@hostname:22 and these things.
Will it work with php5? I have no Testsystem for this
at the moment and dont want to install one if there is
Thanks in advance
Bernhard Guenther, Bonn, Germany