Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

WillyCornelissen's avatar

Cannot SSH to my server

I followed the series talking about Forge, but I could not ssh to my server in Digital Ocean as the series shows. I received by mail the credentials to access my server, but I cannot SSH it, neither I cannot link any site to some github repository, because Forge complain about SSH keys:

We had trouble connecting to your server. Typically, this means there is a problem with the SSH keys on the server. Or, your server may be prompting for a password when Forge attempts to SSH in as the root user.

What am I doing wrong?

0 likes
3 replies
bashy's avatar

What happens if you connect directly using SSH?

WillyCornelissen's avatar

I could connect directly and got this message:

 ssh root@<public IP from digital ocean>
Permission denied (publickey).

In digital ocean I could not connect using VLC (in the website). I opened a ticket there, to see if it's something from them.

christopher's avatar

Forge is using the user forge not root. The root user is disabled. So you have to log in with the user forge.

ssh forge@yourip

If you want to install something which requires root privileges you have to use sudo. Therefore forge sent you an email with the sudo password.

1 like

Please or to participate in this conversation.