On Dec 29, 4:34 pm, Doug Boude <dougbo...@gmail.com> wrote: > Alright PHP admin guru types. I'm putting out the call for paid assistance. > I believe what I need is relatively simple for someone with the right > experience. My setup: IIS7, PHP 4.4.9, Windows 2k8 server (upgrading php is > not an option). > > In a nutshell, I need to be able to transfer a file within my PHP code using > SFTP. I have been googling and experimenting for days now, and have not yet > gotten anything to work. I have attacked this from several angles: > > 1. cURL - I managed to enable cURL, but the version I have doesn't provide > for using the secure ftp protocol. Could not manage to upgrade my version of > cURL to the current one, which is supposed to support it. > 2. ssh2lib - could not manage to get ssh2 enabled in php. > 3. phpseclib - seemingly got it installed, put code in place to utilize it, > and consistently received login failure with known good credentials.
The phpseclib author does provide fairly good support. Maybe you should try posting on his support forum instead of posting on the "Refresh Austin" group. The first thing you'll likely be asked is for a log of the transaction which can be generated thusly: <?php include('Net/SSH2.php'); define('NET_SSH2_LOGGING', true); $ssh = new Net_SSH2('domain.tld'); if (!$ssh->login('username', 'password')) { exit('bad login'); } echo $ssh->getLog(); ?> My first thought, myself, is that maybe your server only supports keyboard-interactive authentication and not password authentication, but the logs should reveal that definitively. Either way, I would recommend posting on the official support forum. -- Our Web site: http://www.RefreshAustin.org/ You received this message because you are subscribed to the Google Groups "Refresh Austin" group. [ Posting ] To post to this group, send email to Refresh-Austin@googlegroups.com Job-related postings should follow http://tr.im/refreshaustinjobspolicy We do not accept job posts from recruiters. [ Unsubscribe ] To unsubscribe from this group, send email to refresh-austin-unsubscr...@googlegroups.com [ More Info ] For more options, visit this group at http://groups.google.com/group/Refresh-Austin