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

0 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 in Jenkins by akhtar
• 17,870 points
523 views

1 answer to this question.

0 votes

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 by MD
• 41,340 points

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
• 6,970 points
2,643 views
+1 vote
1 answer

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
• 55,420 points

edited May 28, 2019 by Sirajul 25,864 views
0 votes
2 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
• 55,420 points
7,728 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
599 views
0 votes
1 answer
0 votes
1 answer

not able to launch new node via SSH in Jenkins!

Hi@akhtar, To launch one new node via SSH, ...READ MORE

answered May 29 in Jenkins by MD
• 41,340 points
48 views