Jump to content

SFTP with PHP


jasper182

Recommended Posts

I'm working on a project for school and I am trying to use an FTP connection to upload/download files from a FTP server that isn't on the school's network.  Unfortunatly, our school's firewall blocks all incoming/outgoing FTP requests because they believe FTP is to insecure.  While this may or may not be true (I don't know much about the security of FTP transfers) I was told that I could use SFTP by our network's admin.  However, I have been unable to find any documentation on using SFTP with PHP.  Is this even possible?  If so, could you help point me in the right direction?  Thanks.
Link to comment
Share on other sites

  • 4 months later...
Sorry, I couldn't resist replying. I've been looking for such a solution, too.

For your information, makeshift_theory, check out this comment from the link you provided:
[code]Just remember: SSL FTP != SFTP

Differences: an SSL FTP connects on port 990, and you need an ftp server which will support this (seems like none in the SuSE linux distribution do). Even if you get this function to work, and it connects ok to a normal FTP server on port 21, data WILL NOT BE ENCRYPTED. If you don't believe me, go sniff it yourself![/code]SSL is different from SSH(2). SFTP uses SSH.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.