Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73750

jenkins does not find known_hosts file in home directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None

      running version 2.475-jdk17 docker image, I am unable to have jenkins find the known_hosts file.

      The $JENKINS_HOME directory is /var/jenkins_home.

      I've created the .ssh directory in $JENKINS_HOME, set permissions both 644 and 600 on separate occasions.

      The permissions of the known__hosts file are 644. The owner of both the .ssh directory and known hosts file are jenkins. Jenkins is running as user jenkins

      With the git host key verification set to known hosts, I am getting the following error:

      `You're using 'known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Security' -> Git Host Key...' and configure host key verification`.

       

      If I manually enter the hosts, everything is just fine and the warning go away. This makes me kinda sad

            Unassigned Unassigned
            drob0362 Robert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: