SFTP
type: sftp — upload to an SFTP server using either password or SSH key auth.
Fields
Example — password
Example — SSH key
Prerequisites
- No external binaries required (snapr uses the Go SSH library).
- The private key file must be readable by the snapr process (mount it into the container if running in Docker).
- For production: pre-populate
knownHostswith the server's host key (ssh-keyscan -H <host> >> known_hosts) and leavestrictHostKeyat the default.
Notes
usernamedefaults to the OS user running snapr if omitted.portdefaults to22.- When
strictHostKey: false, snapr logs a warning but accepts any host key. Use only for ad-hoc testing.