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

lyonio's avatar

SSH problems with envoy deploy

I added the Server SSH public key to my git repository, bit when I try to deploy I get always:

[neptun]: Host key verification failed.
[neptun]: fatal: Could not read from remote repository.
[neptun]: Please make sure you have the correct access rights
[neptun]: and the repository exists.
[✗] This task did not complete successfully on one of your servers.

Is there still something to setup on repository?

0 likes
1 reply
bashy's avatar

Before you connect to ANY ssh server, you need to connect normally from the server you're connecting from.

Doing so will just add the host key into ~/.ssh/known_hosts so it protects you from MITM attacks.

1 like

Please or to participate in this conversation.