Have you tried posting on the official phpseclib support forum? The
author seems to be fairly proactive in providing support and it
certainly seems like a better venue for questions regarding it than
this place.
Having asked for support there, myself, I can say that the first thing
you'll probably be asked for are your logs, 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();
?>
Off hand, my own suspicion would be that your server uses keyboard-
interactive authentication and not password authentication but the
logs would reveal that for sure.
On Dec 29, 4:34 pm, Doug Boude <[email protected]> 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.
> 4. third party command line sftp utility. Created working batch file that
> uploads the file successfully. When attempting to run it via exec(), the
> same code does not upload the file (batch file is definitely being
> called...changed the code to a simple "dir" command and received output).
>
> So, I'm at my wit's end and don't know where to go from here. I was close on
> each of the approaches, but am not knowledgeable enough about how to
> install/upgrade php utilities to get it working. If anybody is available and
> able to assist, I would love to negotiate. Just email me direct to chat
> about it. My preference is to do the work myself and have someone guide me
> along, step by step.
>
> Doug Boude :0)
--
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 [email protected]
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
[email protected]
[ More Info ]
For more options, visit this group at
http://groups.google.com/group/Refresh-Austin