Skip to content

Commit

Permalink
Merge b1a7e4e into ed613f1
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-stripe committed Jul 20, 2018
2 parents ed613f1 + b1a7e4e commit 8c21dcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ncclient/transport/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ def connect(self, host, port=830, timeout=None, unknown_host_cb=default_unknown_
username = config.get("user")
if key_filename is None:
key_filename = config.get("identityfile")
if hostkey_verify:
userknownhostsfile = config.get("userknownhostsfile")
if userknownhostsfile:
self.load_known_hosts(os.path.expanduser(userknownhostsfile))

if username is None:
username = getpass.getuser()
Expand Down

0 comments on commit 8c21dcd

Please sign in to comment.