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

demeillon's avatar

Deploy key fingerprint already taken

Hi guys

I'm having a problem with Forge's Server Public key. I'm trying to deploy and / or create a site on a custom VPS setup.

It all worked great, but I deleted a user from the Gitlab repository which I think added the deployment key to his account.

This is a former employee of the company I work for and cannot get in contact with him.

So I'm not sure if this is something I can sort out with Forge or is it a Gitlab problem.

Please can someone help or point me in the right direction?

0 likes
4 replies
ejdelmonico's avatar

You will have to get into the server and change the permission to log into it with a password. Once in, you will need to add your key and then change the ssh login back to key. I have had to do it on a few projects that I inherited and took me forever to figure it out. It is no simple task. The hardest part is using the vendor console to get a root prompt.

For DO, I use the vm console to get a root prompt...that is usually trouble but eventually it will work. Then look for sshd_config and change the PasswordAuthentication to yes. then run sudo /etc/init.d/ssh restart. Then, from your terminal, log into the server vis ssh and password. The, add keys as a sudoer for root and forge users in `authenticate_keys. After that, go back and change the password authentication to no in sshd_config. That will work on most vm's managed by forge.

demeillon's avatar

Thank you for responding @ejdelmonico

Okay that sounds if I need the root password for the server, which I don't have?

So will deployment work if the other developer removes the deployment key from his account, and I add this deployment key to my account?

ejdelmonico's avatar
Level 53

You need to add your computer key to forge. And you going to need the passwords for the forge user and the DB user named forge.

Please or to participate in this conversation.