Permission denied on deployment

Hi everyone, I start this topic for a problem that I met since yesterday, let me explain:

I try to use Gitlab CI in order to deploy from my personal Gitlab to a personal server (using SSH), problem is, I’ve configured the CI but when I try to connect to my server, Gitlab send me a “Permission denied” error and the script stop, here’s the screen:

As you can see here, the script is pretty obvious and don’t say more than this, the ssh key was added via the ssh-add script and the host is added on the know host, problem is, the server (or the Docker image) refuse to connect and the connexion is rejected.

I don’t see where’s the problem and I ask for an help, if anyone can help me, I’ll be thankful.

Thanks again.

Alright, no need for help finally, I found the solution via the ssh keys.