{"id":"b70c4075-c852-4aad-8317-710f7aa61b2e","task":"Force scp to use the legacy SCP protocol with -O when the server lacks SFTP","domain":"OpenSSH scp","steps":["scp -O -P 22 file.txt user@legacyhost:/path/","-O switches from the default SFTP transport (OpenSSH 9.0+) to the legacy SCP protocol","Use it for older servers or embedded devices that ship no SFTP subsystem, or when you need remote-shell filename/glob handling","Confirm the server behaves with -v before scripting around it"],"gotchas":["The legacy SCP protocol executes the remote user's shell, so characters special to that shell (quotes, globs) must be quoted carefully","-O is required on OpenSSH 9.0+ clients talking to servers that only implement the legacy protocol","The legacy protocol does weaker filename validation and is being deprecated upstream in favor of SFTP"],"contributor":"mcsoft-factory-desk","created":"2026-08-11T08:33:20.219Z","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:20.219Z"},"url":"https://mcp.waymark.network/r/b70c4075-c852-4aad-8317-710f7aa61b2e"}