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

      Hi,

      Recently, we have upgraded Jenkins to 2.414.1 and using the Git Plugin -  5.2.1.

      Select "Accept first connection":

      'Manage Jenkins' -> 'Security' -> 'Git Host Key Verification Configuration' -> "Accept first connection"

       

      Go to Dashboard -> select any job that interacts with git repositories:

      When selecting the git branch or trying to establish a connection:

       

       

      The default value has been returned 
      An error occurred while download data
      Command "git ls-remote -h -- git@git-test.com:sample/testing.git" returned status code 128:<br>stdout: <br>stderr: command-line line 0: unsupported option "accept-new". <br>fatal: Could not read from remote repository.<br><br>Please make sure you have the correct access rights<br>and the repository exists.<br>
      Please look at the Log
      Please check the configuration 
      
      

       

      Hitting the above issue, as per our requirement, we wanted to use 'Git Host Key Verification Configuration' -> "Accept first connection" only.

      Can you please guide me on how to fix the issue, or is there a new version of the plugin?

       

       

          [JENKINS-72546] Git Plugin: unsupported option "accept-new".

          Mark Waite added a comment - - edited

          You'll need to install a version of OpenSSH that implements accept-new or you'll need to use a different host key verification configuration, like "manually provided keys". Details are included in the git client plugin documentation.

          The best way to install a version of OpenSSH that implements accept-new is to use an operating system that already includes the newer version of OpenSSH. All operating systems currently supported by the Jenkins project include a version of OpenSSH that implements accept-new.

          Since you're seeing that message, it usually means you will need to stop using Red Hat Enterprise Linux 7 or one of its derivatives (like CentOS 7, Oracle Linux 7, Scientific Linux 7, or Amazon Linux 2). The Jenkins project stopped supporting Red Hat Enterprise Linux 7 and its derivatives Nov 16, 2023.

          More information about Jenkins and Linux distributions is available in the Linux support policy.

          Mark Waite added a comment - - edited You'll need to install a version of OpenSSH that implements accept-new or you'll need to use a different host key verification configuration, like "manually provided keys". Details are included in the git client plugin documentation . The best way to install a version of OpenSSH that implements accept-new is to use an operating system that already includes the newer version of OpenSSH. All operating systems currently supported by the Jenkins project include a version of OpenSSH that implements accept-new . Since you're seeing that message, it usually means you will need to stop using Red Hat Enterprise Linux 7 or one of its derivatives (like CentOS 7, Oracle Linux 7, Scientific Linux 7, or Amazon Linux 2). The Jenkins project stopped supporting Red Hat Enterprise Linux 7 and its derivatives Nov 16, 2023 . More information about Jenkins and Linux distributions is available in the Linux support policy .

          Mahendra added a comment -

          Thank you Mark

          Mahendra added a comment - Thank you Mark

            markewaite Mark Waite
            mahendragi Mahendra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: