SSH Permission Denied (publickey)

SSH server rejected key-based authentication due to key mismatch or wrong ~/.ssh permissions.

Runs locally in browser Free · No login Available (Noindex) · 2026-11-24 v1.0.0
Identifier: SSH Permission Denied (publickey) Platform: Linux / POSIX

Interactive Diagnostic Checklist

Safe Diagnostic Command:
ssh -vvv user@host

Technical Explanation

SSH server rejected key-based authentication due to key mismatch or wrong ~/.ssh permissions. Recommended verified resolution path: Ensure ~/.ssh is 700, authorized_keys is 600, and the right identity key is passed with -i.

Worked Examples

  • Read-only diagnostic command: ssh -vvv user@host

Limitations & Assumptions

  • Error codes can arise from multiple layers (client, CDN, reverse proxy, application, or OS). Always confirm which layer emitted the error before applying changes.

Source References & Verification

Resource ID: err-linux-ssh-publickey · Technical check: 2026-11-24 (noindex pending/withheld from search)

Related Resources