Report this

What is the reason for this report?

After Laravel Forge setup, "Permission denied (publickey)"

Posted on May 21, 2014

Yesterday I created a Digital Ocean account and connected with Laravel Forge. I generated a new droplet via Forge. After it’s created, I try to log in using keys. I keep getting an “Permission denied (publickey)” error. I tried deleting the contents of my known_hosts file. After attempting to connect I got the untrusted server message and opted in. The new key was written to my known_hosts. And then the same error appeared.

Any ideas or tests I can run to see what’s happening?



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have same problem . I need help .

Hi Rich, <br> <br>Did you configure an SSH key in Laravel Forge? <br> <br>http://mattstauffer.co/blog/getting-your-first-site-up-and-running-in-laravel-forge#ssh-key

To Alex: been there, done that, moved on to Laravel Homestead and Forge on Vagrant, because it’s nifty. Thanks anyway. <br> <br>To Andrew… I actually did follow the mattstauffer.co instructions… and have cycled and recycled through various things I found on stackoverflow et al. Now it’s in DO Support’s court. <br> <br>FYI, in case anyone else has problems, the deployment from Forge seems to disable password access, so the keys are necessary, and so server-side fiddling isn’t possible. I must admit I’m no expert at this keygen stuff, but followed instructions to the letter, pretty sure. <br> <br>Thanks… I’ll try to get back here with the resolution.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.