Skip to content
ohsudo

Tags

#openssh

Permission denied (publickey)
Linux

SSH "Permission denied (publickey)": how to find the real cause

Fix SSH "Permission denied (publickey)": read the server log, fix ~/.ssh permissions, check the key and sshd_config, and handle SELinux on RHEL.

Intermediate · 3 min read