Rails, Hatchbox, New SSH Key and Permission denied (publickey)
Hi, I am having to use a different computer whilst mine is in for repair. So i generated the SSH keys to be used for deployment with Hatchbox. Using [email protected] or [email protected] just gives me an error
Permission denied (publickey). Does anyone know a fix for this? I am locked out of my server and i desperately need to check the logs for an error which is giving me a white screen of death. Thanks
I'm trying to add a second key! I can see the key is added to the .ssh/authorized_keys files along with the default Hatchbox key and my other key.
But I'm trying to login from a second device, and am getting the "Permission denied (publickey)." issue!
For anyone surfacing this question in a Google Search:
I solved it by checking my ~/.ssh/authorized_keys files!
Make sure your keys are added to that file!
You'll need to do it manually as you cant login with a password and execute ssh-copy-id!