I have really an SFTP server with both an authentication key and a 'normal' password. I can access with my credentials via WinSCP without any problems. Unfortunately, with phpseclib there seems no way to do the same.
Is there a possibility to use both in phpseclib, a key and a password. Or is there any other way in PHP to connect a SFTP server with these settings? And no, I don't speak of an authentication key with passphrase ;-)
Hey Martin Prikryl your WinSCP is great and in my case it works fine with bot akey and a passord. But please, read my question carefully. I want to do the same with PHP and have some problem there. And no posting in StackOverflow got a solution. The 5 answers your mentioned, unfortunately, don't provide a solution :-(
Update: See also the discussion here: https://github.com/phpseclib/phpseclib/issues/1109