Gitlab-ci alpine image : Host key verification failed
问题 In gitlab I build my job with a maven image , then copy the jar to the ssh server -> it works fine. For a php project, I try to use alpine image . But I get rejected with ' Host key verification failed '. The server and the key are the same. Not working : image: alpine:latest stages: - deploy deploy: before_script: - apk add --update openssh-client bash - eval $(ssh-agent -s) - bash -c 'ssh-add <(echo "$SSH_PRIVATE_KEY")' stage: deploy script: - ssh root@devsb01 "ls" Working : image: maven:3