jenkins does not find known_hosts file in home directory

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            Robert
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: