Jump to content

banksreach

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by banksreach

  1. Well there's this: http://phpseclib.sourceforge.net/sftp/examples.html#put To create an upload form you can do something like $sftp->put($_FILES['filename']['name'], $_FILES['filename']['tmp_name'], NET_SFTP_LOCAL_FILE); See http://www.w3schools.com/php/php_file_upload.asp . I wouldn't expect phpseclib's documentation to talk about how to do uploads with HTML anymore than I'd expect php.net to talk about CSS.
  2. Looks like you posted this question on the phpseclib support forums: http://www.frostjedi.com/phpbb/viewtopic.php?p=156917#p156917 Do you not know what the prompt is? If so you can do this to figure it out: <?php include('Net/SSH2.php'); $ssh = new Net_SSH2('www.domain.tld'); if (!$ssh->login('username', 'password')) { exit('Login Failed'); } $ssh->setTimeout(5); echo $ssh->read(); ?>
  3. I was having this very problem but gave up and just wound up utilizing a pure-PHP implementation of SSH - phpSecLib: http://phpseclib.sourceforge.net/ Even if you can get the ssh2 extension compiled you'll still have problems with ssh2_exec returning prematurely. phpSecLib, in contrast, works perfectly. It requires zero effort to get working and it works every time, too.
×
×
  • 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.