SSH / SFTP DIAGNOSTIC JOURNEY
SSH & SFTP Troubleshooting
Start with the stage where the connection actually fails. These five guides separate pre-auth transport, authentication, subsystem startup, chroot enforcement, and later SFTP session termination so you do not fix the wrong layer.
SSH Permission Denied (publickey)
Trace target, user, available key, offered key and server authorization before generating another identity.
kex_exchange_identification: Connection Closed by Remote Host
Pre-auth: diagnose connection pressure, blocking, sshd, and network path.
Too Many Authentication Failures
Authentication: prove which keys or methods consume attempts before changing limits.
Subsystem Request Failed on Channel 0
Subsystem startup: separate configuration, execution, and account restrictions.
Fatal: Bad Ownership or Modes for Chroot Directory
Chroot: preserve the root-owned boundary while creating writable space inside it.
Received Unexpected End-of-File from SFTP Server
Session/EOF: identify the failure boundary before editing sshd_config.