Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Tools
OpenSSH
Shell & Unix
OpenSSH
ssh, scp, sftp and ssh-keygen.
Official documentation
Errors
1
Config
1
Changes
1
Permission denied (publickey) with ssh
ssh fails with Permission denied (publickey) when the server accepts only keys and none you offer is authorized. Check the key, the user and file permissions.
All OpenSSH error messages
~/.ssh/config: Host, HostName, User, Port and IdentityFile
~/.ssh/config defines per-host SSH settings: an alias with Host, the real name with HostName, plus User, Port and IdentityFile. Check the result with ssh -G.
All OpenSSH config reference
OpenSSH 9.9 to 10.x: incompatible changes from 10.0 to 10.6
OpenSSH 10.x: DSA removed and modp DH off by default in sshd (10.0), agent sockets moved to ~/.ssh/agent (10.1), stricter user names on the command line (10.6).
All OpenSSH version changes
Esc