Benches Uncategorized

1

Open_ssl and ssh2_connect()

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Our web developers want to use ssh2_connect() to submit user uploaded documents, via a web form, via sftp to a second server, which is already configured for sftp.

I have ssl_module enabled on the web server.

Has anyone used ssh2_connect() before? What else might I need to install and configure on our 10.5 server?

They have passed along this info:

-----
In order to perfom an sftp connection through PHP, the function “ssh2_connect()” is used and requires OpenSSL and libssh2 to be installed, as noted here: http://www.php.net/manual/en/ssh2.requirements.php

The ssh2_connect function needs to be installed on the web server as well:
Installation instructions for that are here: http://www.php.net/manual/en/ssh2.installation.php
-----

Thus far our 10.5 web server is mostly Apple’s generic installation using Apple provided modules except for one lib I added (GD Lib). It’s not clear to me what comes installed, along with ssl_module, and what else needs to be installed to get ssh2_connect() to work.

running phpinfo() returns:

OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7l 28 Sep 2006

Does anyone have any experience with this?

Thanks!

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I just figured this out and posted it here: http://discussions.apple.com/thread.jspa?threadID=2531400&tstart=0

    Mine was on 10.6, but the situation should be similar enough that it'd work on 10.5 as well.