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

mbo's avatar
Level 3

Forge: We were unable to deploy xxx to server (icy-pebble).

Goodday,

I got the following error. is has been a long time ago is set this up. It always worked.

I got the following details:

Warning: Permanently added the ECDSA host key for IP address 'xxx' to the list of known hosts. [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

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

All help is welkom.

thanks in advance!

0 likes
1 reply
lbecket's avatar

This error message suggests that there is a problem with the SSH key used to authenticate with the remote repository. Make sure that you have generated a new SSH key pair and added the public key to your GitHub account. In your Forge server, check that the correct private key is added to the ssh-agent by running the command: ssh-add -l. If the correct key is not listed, add it by running ssh-add ~/.ssh/id_rsa

Test your connection and if you still can't deploy, try adding the GitHub host key to the server's known_hosts file: ssh-keyscan github.com >> ~/.ssh/known_hosts

Please or to participate in this conversation.