https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36766 --- Comment #21 from David Nind <david@davidnind.com> --- (In reply to Nick Clemens (kidclamp) from comment #15) ....
1 - you can sftp from the command line: sftp user@sftp
2 - The username and password are set in the command line in David's example, so if you did command: foo:bar:::upload the user would be foo and the password bar
You should add the lines to docker-compose-light.yml
Thanks Nick, that really helped! I've added my sign-off, so I'll let you change the status to passed QA. My testing notes (using KTD): 1. Set up a Docker-based SFTP server: 1.1 Add this information to koha-testing-docker/docker-compose-light.yml (near the end, before networks:): sftp: image: atmoz/sftp command: koha:koha:::upload networks: - kohanet 1.2 ktd up (should pull the sftp Docker image). 2. Apply the patch and restart services. 3. Generate a file on your Koha server. Place it in /tmp/test.mrc 3.1 misc/export_records.pl --starting_biblionumber=261 --ending_biblionumber=262 --filename=/tmp/test.mrc 4. Manually connect to the SFTP remote host and accept the hostkey, and also check that you can successfully connect to the SFTP server: 4.1 sftp koha@sftp 5. Run the sftp_file.pl command-line script: 5.1 ./misc/cronjobs/sftp_file.pl --host sftp --user koha --pass koha --upload_dir upload --file /tmp/test.mrc 6. Confirm the SFTP was successful: 6.1 Access the SFTP server: sftp koha@sftp 6.2 List the files in the upload directory: ls -la upload 6.3 Exit the SFTP server: exit -- You are receiving this mail because: You are watching all bug changes.