SFTP failed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

SFTP failed

Post by vinoth »

Hi all,

One of my project, I need to download the file from sftp server.

I tried ftp_ssl_connect('sftp.domainname.com',22) - this function won't return anything, it fails I think.
I already working another 3 ftp servers using ftp_connect, thats working fine.

I am trying this issues for 2 days, still I didn't get any solutions.

Anybody guide me or provide some instruction to download the files from sftp server.

Thanks in advance
Vinoth
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: SFTP failed

Post by AbraCadaver »

SFTP is not FTP over SSL. SFTP is SSH File Transfer Protocol and has noting to do with FTP. FTP over SSL is FTP encrypted by SSL. They are two totally separate things.

-Shawn
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
vinoth
Forum Contributor
Posts: 113
Joined: Thu Aug 02, 2007 3:08 am
Location: India
Contact:

Re: SFTP failed

Post by vinoth »

Hi shawn,
Thanks for your reply.

I never tried ssh methods,
I tried few steps from google.

I install ssh2 library & PECL.
I tried with localhost, but I didn't get any positive results.

Can you guide me to do that..

-Vinoth
Post Reply