Laravel Forge Permission denied (publickey).

  • Posted on January 11, 2015
  • alennAsked by alenn


I was subscribed to Laravel Forge couple weeks ago, now I canceled my subscription and I can’t access to my server using SSH.

Don’t know if it’s related to canceling subscription.

I’m noob to SSH, I only used it once I started to use Forge so I don’t know what could be the problem.

I always get this error: Permission denied (publickey).

Can someone help me.

Submit an answer

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!

Sign In or Sign Up to Answer

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 think you can renable password authentication by going to the ssh config file and executing the following code. (Access your server by using the console on the DO control panel.)

nano /etc/ssh/sshd_config 

Once in the file find a section that look like this and change no to yes

PasswordAuthentication no

Save the file and reload ssh config with this

 /etc/init.d/sshd restart 

Now, I wouldn’t recommend for you to keep it this way but at least now you can access ssh normally and setup new keys for you server. Once you setup new keys just go back into the configuration file and change ‘yes’ back to ‘no’

Hope this helps

Good Luck!

Have you try accessing the server through the DO console in the control panel? if not, try loggin in there and see if you can.