Host SSH key not recognized when trying to SSH into remote repository using Ansible playbook. Remote repository was verified to have the correct SSH key from host, but still wouldn't recognize host when trying to clone from the repository. Ran Ansible on 15 hosts, 13 were successful, 1 failed to clone from remote repo even though they were configured the same. Here is the actual error received. Can anyone help, please? Thx
fatal: [Host]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin 'ssh:<path_to_repo>' /local_path", "msg": "FIPS mode initialized\r\nDisabling GSSAPIKeyExchange. Not usable in FIPS mode\r\nPermission denied (publickey).\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": "FIPS mode initialized\r\nDisabling GSSAPIKeyExchange. Not usable in FIPS mode\r\nPermission denied (public key).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the corr ect access rights\nand the repository exists.\n", "stderr_lines": ["FIPS mode initialized", "Disabling GSSAPIKeyExchange. Not usable in FIPS mode", "Permission denied (publickey).", "fatal: Could not read from remote repository.", "", "Please make sure you have the correct access rights", "and the repository exists."], "stdout": "Cloning into '/local_path'...\n", "stdout_lines": ["Cloning into '/local_path'..."]}
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1ca775c3-320c-4139-8f13-d61ae64c7d41n%40googlegroups.com.
Key permissions are ok. I can manually sudo to that host, but cannot clone the repo manually, either.
I don't think there's any SSH misconfig. I ran the ansible playbook in verbose mode (-vvv) to look at the execution statement where it breaks and here it is: