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

Firemaps's avatar

SSH problems, permission denied, Host key verification failed.

Hey guys,

I have had an inactive project on digital ocean for a while. I recently made a whole bunch of changes and now I'm trying to get the latest version of the site into production.

I can push the changes locally from Gitlab no problem. Everything is there. I can ssh with forge@my-ip too, and the phpseclib-generated-key from the Forge error message is there under forge@forge-server:~/.ssh$ cat authorized_keys

On Gitlab, my local ssh key is there and the root@forge-server is there.

I was able to deploy updates before no problem, but I have since upgraded the project from 5.3 to 5.4.

Now when Forge tries to deploy I get

Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Should I uninstall the repository and start again? Ideally I would like to keep my database.

Hope someone can help,

Thanks

0 likes
2 replies

Please or to participate in this conversation.