shopware5 / SwagMediaSftp

MIT License
12 stars 6 forks source link

Logfile? Login Issues #12

Closed MarcoGriep88 closed 2 years ago

MarcoGriep88 commented 2 years ago

Is there any logfile?

I tried to use sftp on localhost. SFTP works, but adapter says it cannot login

Could not login with username: root, host: localhost

Does not matter if i try to use a private key file or the password.

I tried to use my private server with my credentials. I can login from my dev machine with sftp, but not via shopware FTP adapter.

'cdn' => [ 'backend' => 'sftp', 'adapters' => [ 'sftp' => [ 'type' => 'sftp', 'mediaUrl' => 'https://localhost', 'host' => 'localhost', 'port' => 22, 'username' => 'marco', 'password' => 'test', 'privateKey' => '/home/marco/.ssh/id_rsa', 'root' => '/media', 'timeout' => 300 ] ] ],

When i var_dump the private key in "SftpAdapter" it looks like there is not the issue reading this file. Also the "connection" Properties look fine.

Dont know whats the Problem is

Best Regards

MarcoGriep88 commented 2 years ago

Same issue with Private Key, even on Root User

MarcoGriep88 commented 2 years ago

I used the newer code from flysystem-sftp 1.0.22. With the new code it works fine.