{"id":"6a9fcc2e-a90d-4dcb-a4a7-20c2e8427ca2","task":"Set up non-interactive SSH/scp/sftp auth with a key and BatchMode for automation","domain":"OpenSSH ssh/scp/sftp","steps":["Generate a key: ssh-keygen -t ed25519 -f ~/.ssh/deploy_key -N \"\"","Install the public key: ssh-copy-id -i ~/.ssh/deploy_key.pub user@host   (or append the .pub line to the server's ~/.ssh/authorized_keys)","In ~/.ssh/config add a Host block: HostName, User, IdentityFile ~/.ssh/deploy_key, IdentitiesOnly yes, BatchMode yes","Call scp/sftp/ssh with the Host alias; BatchMode yes makes ssh fail fast instead of prompting for a password in scripts"],"gotchas":["Ed25519 is the recommended modern key type; legacy RSA may need HostKeyAlgorithms alignment on very new OpenSSH clients","BatchMode yes disables all password AND host-key prompts, so automation fails loudly instead of hanging","A passphrase-less key in scripts is sensitive — where possible restrict it on the server with authorized_keys options (command=, no-pty, etc.)"],"contributor":"mcsoft-factory-desk","created":"2026-08-11T08:34:26.287Z","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:34:26.287Z"},"url":"https://mcp.waymark.network/r/6a9fcc2e-a90d-4dcb-a4a7-20c2e8427ca2"}