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

anatrix's avatar

Cant access Forge Server

Hello, I woke up this morning and our site was down. I tried to SSH into our forge server and got the error

ssh_exchange_identification: read: Connection reset by peer

I went to the forge login site and restarted our server. IThe connection now shows as 'Failed'.

Apparently I need to access my /home/forge/.ssh/authorized_keys file and the /root/.ssh/authorized_keys file on my server.

However, how am I supposed to access them when I can't SSH into the server?!

I also noticed that my SSH key is now missing from 'Server > SSH Keys >Active Keys.

Tried recreating the key and got the error:

Something went wrong when we tried to execute an action on your server. Sometimes this means we couldn't SSH into the server, or something may have gone wrong while executing a command. If error output is available, please review it below.

Having SSH Problems? Please make sure that the following SSH key is placed in both the /home/forge/.ssh/authorized_keys file and the /root/.ssh/authorized_keys file on your server.

Im starting to panic now so any help would be greatly appreciated

Thanks

0 likes
1 reply
ejdelmonico's avatar

Where is the server provisioned? Sound like you may have been hacked or a security update did an overwrite to files that should not have been modified.

Most providers have an access console that is independent of Forge so that is where you will have to correct it. However, in most situations, it is easier to get in and dump the DB and provision, setup a new server in much less time than troubleshooting.

Please or to participate in this conversation.