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,260 points
12,928 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,460 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,230 points
784 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 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,460 points
45,219 views
0 votes
1 answer
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