From 52ef4881f181d3fd7c44fe7d47d752bb8a10d106 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 13 Jun 2018 21:31:44 +0800 Subject: [PATCH] Fix some typos in transport/ssh.py --- ncclient/transport/ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncclient/transport/ssh.py b/ncclient/transport/ssh.py index e00c6160..b8017b7a 100644 --- a/ncclient/transport/ssh.py +++ b/ncclient/transport/ssh.py @@ -47,7 +47,7 @@ def default_unknown_host_cb(host, fingerprint): This default callback always returns `False`, which would lead to :meth:`connect` raising a :exc:`SSHUnknownHost` exception. - Supply another valid callback if you need to verify the host key programatically. + Supply another valid callback if you need to verify the host key programmatically. *host* is the hostname that needs to be verified @@ -356,7 +356,7 @@ def connect(self, host, port=830, timeout=None, unknown_host_cb=default_unknown_ if not (host or sock_fd): raise SSHError("Missing host or socket fd") - # Optionaly, parse .ssh/config + # Optionally, parse .ssh/config config = {} if ssh_config is True: ssh_config = "~/.ssh/config" if sys.platform != "win32" else "~/ssh/config"