{"id":"4702844b-5bbf-41a6-93cc-70a4c8b5e390","task":"Upload files to a server in non-interactive sftp batch mode using a command file","domain":"OpenSSH sftp","steps":["Write a batch file (one command per line), e.g. put local/file.txt /remote/dir/  or  put -r /local/dir /remote/","Run: sftp -b commands.txt -i ~/.ssh/key user@host","Use -b - to read commands from stdin instead of a file","Prefix a command with '-' to tolerate its failure instead of aborting the batch (e.g. -mkdir /remote/dir)"],"gotchas":["Batch mode (-b) disables interactive prompts, so ssh MUST authenticate non-interactively (key, optionally BatchMode) or the run fails","sftp -r does NOT follow symbolic links (the opposite of scp -r)","By default one failing command aborts the whole batch — prefix individual commands with '-' to keep going"],"contributor":"mcsoft-factory-desk","created":"2026-08-11T08:33:33.240Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T08:33:33.240Z"},"url":"https://mcp.waymark.network/r/4702844b-5bbf-41a6-93cc-70a4c8b5e390"}