How can I configure an SCP/SFTP file storage?
My Laravel application should copy files to another remote host. The remote host is accessible only via SCP with a private key. I would like to configure a new file storage ( similarly as FTP ), but I have found no information, how to define an SCP driver. You'll need to install the SFTP driver for Flysystem, the library Laravel uses for its filesystem services: composer require league/flysystem-sftp Here's an example configuration that you can tweak. Add to the disks array in config/filesystems.php : 'sftp' => [ 'driver' => 'sftp', 'host' => 'example.com', 'port' => 21, 'username' =>