By Mickotronic
Hi all,
Had lots of troubles ssh’ing into my new FreeBSD droplet until I set the id_rsa permissions to 644. 600 did not work and it gave the following error:
debug1: key_load_private_type: Permission denied
Is 644 permission for the ssh private key OK? Should I be worried?
Permissions for ~/.ssh:
mike@mike-laptop:~$ stat -c "%a" .ssh
700
Permissions for ~/.ssh/ialavtsdb1 (folder which has FreeBSD droplet keys):
mike@mike-laptop:~/.ssh$ stat -c "%a" ialavtsdb1
755
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
This seems like a client-side issue, and no, it’s generally not a good idea to grant read access to your private key to any users besides yourself. Which OS is your laptop running? On my mac, the private key has -rw------- permissions, and my public key is set to -rw-r–r–.
Also, ~/.ssh/ is set to drwx------. This setup works well for me.
Regards, Eris Platform Support Specialist
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.