Hello ,
Sorry for my approximative langage in my issue description.
I’m running a gitlab server (centos7.3) with CE Omnibus gitlab-ce-8.16.5-ce.0.el7.x86_64
and another machine also centos7.3 with gitlab-ci-multi-runner-1.11.4-1.x86_64
I want to execute a script test define in .gitlab-ci.yml on the machine running the gitlab-ci-multi-runner
I first setup a runner with the shell method and then a runner.ssh using a password in the config.toml
when i modify my project/repository its OK the test is PASSED
Then I generate an ssh key with the command : ssh-keygen -t rsa
If I try to setup the runner.ssh with the identity_file = “/home/user/.ssh/id_rsa” or /root/.ssh/id_rsa instead of password then the gitlab server return Failed with this message:
Running with gitlab-ci-multi-runner 1.11.4 (7e2b646)
on SpokeSSH (596bbba1)
Using SSH executor…
ERROR: Preparation failed: ssh: handshake failed: ssh: unable to authenticate, attempted methods [publickey none password], no supported methods remain
Will be retried in 3s …
etc…
I have this type of message in /var/log/messages on the runner machine:
Jun 13 09:20:06 beurk gitlab-runner[4293]: time=“2017-06-13T09:20:06+02:00” level=error msg=“Job failed (system failure): ssh: handshake failed: ssh:
unable to authenticate, attempted methods [none password publickey], no supported methods remain” build=60 project=1 runner=596bbba1 #012
This is an exemple of config.toml
[[runners]]
name = “SpokeSSH”
url = “https://gitlab1.domain.top/ci”
token = “596bbte1c20ed436tceffbe8b51ec74”
executor = “ssh”
[runners.ssh]
user = “root”
host = “gitlabci.domain.top”
port = “22”
identity_file = “/root/.ssh/id_rsa”
[runners.cache]
I try to manipulate various settings on the sshd_config file … but still hung with the handshake failed!
… Any Idea around to help? , thanks
plap