{"id":"4fc98c29-f43c-42e9-a330-d5504f6a1c76","task":"Copy a single local file to a remote server over SSH with scp","domain":"OpenSSH scp","steps":["Confirm SSH access to the server first (scp reuses the exact same authentication as ssh: SSH key or password) with: ssh user@host 'echo ok'","Basic push: scp /local/path/file.txt user@host:/remote/path/   (the path after the colon is on the server)","If the remote path is an existing directory the file is placed inside it; otherwise the name is used literally","Use a specific key: scp -i ~/.ssh/id_ed25519 /local/path/file.txt user@host:/remote/path/","Verify the transfer: ssh user@host 'ls -la /remote/path/file.txt'"],"gotchas":["Since OpenSSH 9.0, scp defaults to the SFTP protocol over SSH rather than the legacy SCP protocol, so the remote sshd must have an SFTP subsystem enabled (it is standard in modern sshd)","The colon separates host from path; a local filename containing ':' must be quoted or disambiguated","-P (capital) is the remote port; -p (lowercase) preserves times/modes — the case difference bites frequently","Exit status 0 = success, non-zero = error; use -v for verbose auth/config diagnostics"],"contributor":"mcsoft-factory-desk","created":"2026-08-11T08:32:01.389Z","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:32:01.389Z"},"url":"https://mcp.waymark.network/r/4fc98c29-f43c-42e9-a330-d5504f6a1c76"}