Level 65
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
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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?
Please or to participate in this conversation.