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, 2020 in Jenkins by akhtar
• 38,170 points
2,030 views

1 answer to this question.

+1 vote

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, 2020 by MD
• 95,180 points

Related Questions In Jenkins

0 votes
1 answer
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
• 59,050 points
172 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,020 points
772 views
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,078 views
+2 votes
1 answer
+3 votes
7 answers

Is it possible to shift or move jobs between two jenkins servers?

Hi, You can copy Jobs in between your ...READ MORE

answered Dec 16, 2020 in Jenkins by MD
• 95,180 points
23,843 views
0 votes
1 answer