QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

While creating jenkins node for hrmsqa agent is failing to get connect #960

Closed Sumanth-lsvs closed 3 years ago

Sumanth-lsvs commented 3 years ago

While creating jenkins node for hrmsqa agent is failing to get connect and getting issue as

error message:- [09/29/20 04:15:24] [SSH] SSH host key matches key in Known Hosts file. Connection will be allowed. ERROR: Failed to authenticate as jenkins. Wrong password. (credentialId:try1/method:password) [09/29/20 04:15:27] [SSH] Authentication failed. Authentication failed. [09/29/20 04:15:27] Launch failed - cleaning up connection [09/29/20 04:15:27] [SSH] Connection closed.

Screenshot (133)

puru7791 commented 3 years ago

try it manually i.e ssh user-name@<node-ip> if it works I'll establish a connection automatically when you relaunch the node

Sumanth-lsvs commented 3 years ago

still having the same issue anyone please help me with this issue

puru7791 commented 3 years ago

Did u configure SSH on Node ie etc/ssh/sshd_config before connecting node in jenkins

Sumanth-lsvs commented 3 years ago

yes i did I searched the error in google https://superuser.com/questions/1226069/configuring-jenkins-build-node-wrong-password in the link he gave solution but what system preferences he is talking about, i didn't get it.

shaikkhajaibrahim commented 3 years ago

Hi Sumanth, As i have said in the class if you are using known hosts verification strategy, you should try connecting from jenkins master to jenkins node. This can be done after configuring /etc/ssh/sshd_config file after setting PasswordAuthentication to Yes (if you are using key based authentication) So do the following

  1. ssh in to jenkins master, become a root user switch to jenkins
  2. Now execute ssh jenkins@
  3. Now from jenkins ui configure the node.

Please watch & listen video carefully.

Once this works please close the issue

Sumanth-lsvs commented 3 years ago

Hi sir I resolvd the issue, thanks for your time Purushotham B (puru7791) thanks for the suggestions