Error when configuring a runner using ssh executor
Hi,
I have setup my runner as explained in here (it runs on a Raspberry Pi 2). I didn't install docker because of some other issues related to the raspberry pi and decided to use ssh
as the executor.
The steps I took where:
-
sudo wget -O /usr/local/bin/gitlab-ci-multi-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-arm
-
sudo chmod +x /usr/local/bin/gitlab-ci-multi-runner
-
sudo gitlab-ci-multi-runner register
(at this step I entered the IP (static), port 22 and user and password of the raspberry pi) -
sudo gitlab-ci-multi-runner install --user=pi --working-directory=/home/pi
-
sudo gitlab-ci-multi-runner start
Note: As you can see, I have omitted creating a new user which was recommended in the doc (sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
) since I would need to add a password as well and I don't want to make things more difficult for myself. I want to try something simple and see where it goes.
However I cannot get it to work and the Gitlab CI returns the following error message:
gitlab-ci-multi-runner 0.7.2 (998cf5d)
Using SSH executor...
ERROR: Build failed with: asn1: structure error: tags don't match (16 vs {class:2 tag:22 length:4 isCompound:false}) {optional:false explicit:false application:false defaultValue:<nil> tag:<nil> stringType:0 set:false omitEmpty:false} pkcs1PrivateKey @2
At first I thought I might have misspelled the password but I tried the following:
ssh-keygen -y -f .ssh/id_rsa
to test that my password is what I thought it was and that works. Any idea of what could be the cause?