Commit 491b5fea by Brian Coca

Merge pull request #11730 from amenonsen/7730-rebase

Have paramiko use /etc/ssh_known_hosts (#7730 rebase)
parents 0858d97c e4df8c3d
...@@ -152,6 +152,7 @@ class Connection(ConnectionBase): ...@@ -152,6 +152,7 @@ class Connection(ConnectionBase):
self.keyfile = os.path.expanduser("~/.ssh/known_hosts") self.keyfile = os.path.expanduser("~/.ssh/known_hosts")
if C.HOST_KEY_CHECKING: if C.HOST_KEY_CHECKING:
ssh.load_system_host_keys("/etc/ssh/ssh_known_hosts")
ssh.load_system_host_keys() ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(MyAddPolicy(self._new_stdin)) ssh.set_missing_host_key_policy(MyAddPolicy(self._new_stdin))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment