mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #11730 from amenonsen/7730-rebase
Have paramiko use /etc/ssh_known_hosts (#7730 rebase)
This commit is contained in:
@@ -152,6 +152,7 @@ class Connection(ConnectionBase):
|
||||
self.keyfile = os.path.expanduser("~/.ssh/known_hosts")
|
||||
|
||||
if C.HOST_KEY_CHECKING:
|
||||
ssh.load_system_host_keys("/etc/ssh/ssh_known_hosts")
|
||||
ssh.load_system_host_keys()
|
||||
|
||||
ssh.set_missing_host_key_policy(MyAddPolicy(self._new_stdin))
|
||||
|
||||
Reference in New Issue
Block a user