Hesesses
424
3
Forge

Forge cannot SSH to server, how to fix?

Posted 3 years ago by Hesesses

Hello,

I have 2 servers behind a load balancer on amazon aws. I wanted to go for bigger instances and created an image from server2. After that I created a new server (new-server-2) from the image. Then I created new-server-1 from the same image.

Now when I push my code to github and i have anto-deploy on forge it will update the new-server-2 without any problems, but the new-server-1 will give an error: Permission denied (publickey).

How I can fix this?

Edit. I can connect the server from my computer, the problem is only when deploying from forge

Please sign in or create an account to participate in this conversation.