SSH Connection failed with IOException Key exchange was not finished connection is closed retrying in 15 seconds There are 5 more retries left

+2 votes

I am trying to set Master Slave architecture in Jenkins. But I am not able to set my remote node in Jenkins. It gives me the below error.

SSH Connection failed with IOException: "Key exchange was not finished, connection is closed.", retrying in 15 seconds. There are 5 more retries left.

How can I solve this error?

May 29, 2020 in Jenkins by akhtar
• 38,230 points
13,861 views

1 answer to this question.

0 votes
Best answer

Hi@akhtar,

To avoid this error, you have to set your Host Key Verification Strategy in Jenkins. By default when Jenkins try to connect with remote node via SSH, it will ask for permission. You can set Host Key Verification Strategy with Non verifying Verification Strategy.

answered May 29, 2020 by MD
• 95,360 points

selected Dec 14, 2020 by MD
How do you set a "Host Key Verification Strategy"?

Hi,

You need to set in the configure agent.

Configure agent -> launch method ->  Host Key Verification Strategy

There you can set your requirement.

Related Questions In Jenkins

+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 7,040 points
3,713 views
+1 vote
3 answers

How to auto build a job in jenkins if there is any change in code on Github repository?

To automatically run build on code commit, follow ...READ MORE

answered Jul 31, 2019 in Jenkins by Sirajul
• 59,170 points
50,080 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,773 views
+2 votes
1 answer
0 votes
1 answer
+3 votes
2 answers

Is there a way to restrict permissions to a user per individual job in jenkins?

Yes, you can configure user permissions per ...READ MORE

answered May 28, 2019 in Jenkins by Sirajul
• 59,170 points

edited May 28, 2019 by Sirajul 84,742 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP