Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-56701

sss_ssh_knownhosts is breaking ansible-pull

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-10.0
    • CentOS Stream 10
    • sssd
    • No
    • Important
    • sst_idm_sssd
    • ssg_idm
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      /usr/bin/ansible-pull --url ssh://USER@gitrepo.domain:33333/repo.git

      localhost | FAILED! => {
         "changed": false,
         "cmd": "/usr/bin/git ls-remote 'ssh:********repo.git' -h refs/heads/HEAD",
         "msg": "KnownHostsCommand-ORDER /usr/bin/sss_ssh_knownhosts [gitrepo.domain]:33333 failed, status 1\r\nKnownHostsCommand failed\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.",
         "rc": 128,
         "stderr": "KnownHostsCommand-ORDER /usr/bin/sss_ssh_knownhosts [gitrepo.domain]:33333 failed, status 1\r\nKnownHostsCommand
      failed\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n",
         "stderr_lines": [
             "KnownHostsCommand-ORDER /usr/bin/sss_ssh_knownhosts [gitrepo.domain]:33333 failed, status 1",
             "KnownHostsCommand failed",
             "fatal: Could not read from remote repository.",
             "",
             "Please make sure you have the correct access rights",
             "and the repository exists."
         ],
         "stdout": "",
         "stdout_lines": []
      }

      If I comment out

      Match exec true
             KnownHostsCommand /usr/bin/sss_ssh_knownhosts %H

      in /etc/ssh/ssh_config.d/04-ipa.conf then it works.

      Please provide the package NVR for which bug is seen:

      sssd-2.10.0~beta2-3.el10.x86_64

      Expected results

      No failure, ssh connects.

            atikhono@redhat.com Alexey Tikhonov
            opoplawski Orion Poplawski
            Alejandro Lopez Alejandro Lopez
            SSSD QE SSSD QE
            Louise McGarry Louise McGarry
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: