SSH Permission Denied (publickey): Fix Key and Permission Issues
Key files and folders need strict permissions.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
Fix
- Public key in
~/.ssh/authorized_keys. chmod 700 ~/.sshandchmod 600on the file.- Use the matching private key and user.
Related guides
- WordPress User Can't See Posts They Created: Roles and Permissions
- WordPress Site Health Warnings: What To Fix First
- WordPress: Create a New Admin User via Database When Locked Out
- WordPress Automatic Updates: Enable, Disable and Safe Settings
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.