Report this

What is the reason for this report?

SSH for gitlab CI

Posted on July 25, 2019

Hi

I’m trying to setup gitlab CI. I need to understand how to install ssh to be able to copy files to the webserver.

Im reading these two docs: https://docs.gitlab.com/ee/ci/ssh_keys/README.html https://docs.gitlab.com/ee/ssh/README.html#generating-a-new-ssh-key-pair

I would like to make this yml work for me: https://medium.com/@hfally/a-gitlab-ci-config-to-deploy-to-your-server-via-ssh-43bf3cf93775

I have created the ssh key on the webserver and on the gitlab server I added the public key. And then I set varaible SSH_PRIVATE_KEY as the private key.

When I run pipeline I get: Permission denied (publickey,password).

Do I need to do anyting on the gitlab runner macchine?

Br

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.