Relative Content

Tag Archive for jenkinsamazon-ec2ssh-keys

Jenkins EC2 agent – Host key verification failed

I’m using Jenkins EC2 Plugin to spawn agents on demand. During my job I have to clone other repository, so I’m using sshagent. However I was getting Host key verification failed error, so I’ve added: sh 'ssh-keygen -F github.company.com || ssh-keyscan -H -t rsa github.company.com >> ~/.ssh/known_hosts' before cloning, which doesn’t solve my problem. I’m really confused by output I’m getting: