Reply to ssh2.sftp

Your name:

Reply:


Posted by Bernhard Gόnther on 01/10/06 20:09

Hello friends of php,

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:

ssh2_sftp_mkdir($sftp, '/home/meee/NEWDIR1');

but if I start using the ssh2.sftp-things is wont get any further:

mkdir("ssh2.sftp://$sftp/home/meee/NEWDIR2");

in szenario I get a

Warning: mkdir(ssh2.sftp:///home/meee/NEWDIR2): No such file or
directory in.

Also fopen will not work and wont produce an error.

Has anyone working this?

I also tried any combinations of

fopen ("ssh2.sftp://$sftp/home/meee/testfile",'rb');

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
no hope.

Thanks in advance

Greetings

Bernhard Guenther, Bonn, Germany

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация