If All Else Fails Try Again Solution Posters

Solving Jenkins "stderr=Host key verification failed" problem when all else fails

Deployment flow (Github -> Jenkins -> Remote -> AWS ECR)

  • Log in to the Jenkins server as the Jenkins user,
  • Attempt to log into the remote accost in question due east.yard. `ci@remote-host`,
  • When greeted with the message "The authenticity of host 'X.X.X.X (X.X.Ten.10)' tin can't be established.", blazon 'aye' and proceed.
  • Then, go back to your Jenkins to retry the operation that failed initially.

The original effect that sent me on a roller-coaster
  • The user I attempted to apply on the remote host exists i.e. `ci@remote-host`,
  • I copied over the public key (~/.ssh/XX_rsa.pub) from the Jenkins server to the remote host'due south authorized_keys file (Append to ~/.ssh/authorized_keys),
  • The private fundamental was set up correctly on the Jenkins manage credentials console.
  • I needed to log on to the Jenkins server 1 more time $ ssh user@jenkins-host
  • If user above is not the aforementioned user for the Jenkins interface, then y'all need to change to the right user $ su jenkins
  • And so I tried the command I wanted to run on the remote again $ docker -H ssh://ci@remote-host, at this point, I got the exact same mistake as in the screenshot above, I knew I had found my solution 🙂
  • And so, I attempted to log in to the remote organization from the aforementioned Jenkins-user console $ ssh ci@remote-host and saw the bulletin validating the authenticity of the remote host.
  • I typed in yes at the prompt `Are you certain you desire to continue connecting (aye/no)? yes`.
  • At this point, y'all might be able to admission the remote host, otherwise, you volition get a dissimilar message. An case, I got Permission denied (publickey). considering the public-private primal combination I used was not saved on the Jenkins-user'southward home/.ssh directory.
  • If you lot besides get the public key error, and you lot are unsure how to proceed, peradventure you can create a new public-private key combination ssh key-gen and create a new setup with that.

Second error after host authentication

sinclair-maclagansuchang.blogspot.com

Source: https://medium.com/@alli5723/solving-jenkins-stderr-host-key-verification-failed-problem-when-all-else-fails-efcbce67f9a2?source=read_next_recirc---------2---------------------996cf2da_46e0_445b_a31b_09b09169ad53----------

0 Response to "If All Else Fails Try Again Solution Posters"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel