Mittwoch, 30. September 2015

PHP and SFTP issues

We implemented an SFTP module for some website in PHP.

It was decided to use the php ssh2_* functions (PECL ssh2).

This worked as expected on the dev machines. It also worked from the staging machine towards my private external host.

The one thing that didn't work was connecting to the customer's host. Or, rather, it seemed to connect, but no file was ever uploaded. This made us all a tad sad, and me as the coder-in-charge slightly panicky.

We then proceded to install Net::SFTP (http://sourceforge.net/projects/phpseclib/). This worked like a charm.

I haven't found anything related to this issue on the whole wide internets.

What gives?

Keine Kommentare:

Kommentar veröffentlichen