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

+1 vote

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
27,007 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,440 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,050 points
4,361 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,230 points
75,742 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
3,458 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,230 points

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