Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with SFTP coconfiguration #451

Open
iinfotecnica opened this issue Feb 26, 2024 · 0 comments
Open

Problem with SFTP coconfiguration #451

iinfotecnica opened this issue Feb 26, 2024 · 0 comments

Comments

@iinfotecnica
Copy link

Hello, I did a test with the FTP connection, it worked, but what I need is a connection to a remote server via Sftp, but it's not working.

When I add the information to configuration.php the system crashes.
Does anyone know what could be going wrong?

'Filegator\Services\Storage\Filesystem' => [ 'handler' => '\Filegator\Services\Storage\Filesystem', 'config' => [ 'separator' => '/', 'config' => [], 'adapter' => function () { return new \League\Flysystem\Sftp\SftpAdapter([ 'host' => 'example.com', 'port' => 22, 'username' => 'demo', 'password' => 'password', 'timeout' => 10, ]); }, ], ],

`I added it in the penultimate sequence below

'Filegator\Services\Storage\Filesystem' => [
'handler' => '\Filegator\Services\Storage\Filesystem',
'config' => [
'separator' => '/',
'config' => [],
'adapter' => function () {
return new \League\Flysystem\Adapter\Local(
DIR.'/repository'
);
},
],
],`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant