OpenSSH 9+ `scp` Error: subsystem request failed on channel 0 (SFTP Default)

OpenSSH 9 switched `scp` from legacy RCP to SFTP protocol, which minimal servers may omit.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: OpenSSH 9+ `scp` Error Platform: Networking
Common Root Causes:
  • OpenSSH 9 switched `scp` from legacy RCP to SFTP protocol, which minimal servers may omit.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Enable `Subsystem sftp internal-sftp` on the server or pass `scp -O` for legacy protocol.
Safe Diagnostic Command:
grep -i sftp /etc/ssh/sshd_config
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

OpenSSH 9 switched `scp` from legacy RCP to SFTP protocol, which minimal servers may omit. Recommended diagnostic: `grep -i sftp /etc/ssh/sshd_config`. Remediation: Enable `Subsystem sftp internal-sftp` on the server or pass `scp -O` for legacy protocol.

Worked Examples

  • Run `grep -i sftp /etc/ssh/sshd_config` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-scp-subsystem-request-failed-sftp · Independently verified: 2026-11-25

Related Resources