/var/lib/jenkins/.ssh/known_hosts [SSH] No Known Hosts file was found at /var/lib/jenkins/.ssh/known_hosts. Please ensure one is created at this path and that Jenkins can read it.

0 votes

Hi Guys,

I am trying to connect one new system in my Jenkins. But It shows me the below error.

/var/lib/jenkins/.ssh/known_hosts [SSH] No Known Hosts file was found at /var/lib/jenkins/.ssh/known_hosts. Please ensure one is created at this path and that Jenkins can read it.

How can I solve this error?

May 29 in Jenkins by akhtar
• 17,870 points
250 views

1 answer to this question.

0 votes

Hi@akhtar,

You are trying to connect your remote node via ssh. So make sure you have created remote directory on that node. Whenever Jenkins will run a job in remote node, it will create workspace on that node. For that you have to specify your remote directory name in node configuration .

Another thing to be noticed when we try to login with SSH, it will ask permission. So you have to set your Host Key Verification Strategy with Non verifying Verification Strategy in node configuration.

So you have to set these above configurations in your node and then try to launch your node.

answered May 29 by MD
• 41,340 points

Related Questions In Jenkins

0 votes
1 answer

How can I ensure that my jenkins build server is accessed only by authorized users?

Anyone can make use of the URL ...READ MORE

answered Aug 6, 2019 in Jenkins by Sirajul
• 55,420 points
94 views
0 votes
1 answer

Jenkins displays the message that reverse proxy setup is broken. How to solve this issue?

As long as it is not interrupting ...READ MORE

answered Jun 19, 2019 in Jenkins by Neel
• 3,010 points
416 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