SSH Host Key Verification Failed inside GitLab CI

后端 未结 3 1855
别那么骄傲
别那么骄傲 2020-12-19 02:45

Local Setup

I created a public and private SSH key via the ssh-keygen command.

I decided to setup the private key locally first

3条回答
  •  渐次进展
    2020-12-19 03:26

    A server can have multiple signatures in case of load balanced server. Ideal way is to change

    - echo "$SSH_KNOWN_HOSTS" >> /.ssh/known_hosts
    

    to

    - ssh-keyscan www.gitlab.com >> /.ssh/known_hosts
    

提交回复
热议问题