diff options
author | Alex Chavkin <achavkin@scclin013.flatironinstitute.org> | 2023-01-23 16:41:43 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2023-02-16 16:59:14 -0500 |
commit | 74c9f530ceb77c71c545fe35b3b70ed9fd528be0 (patch) | |
tree | 075a70d40dfc1a61db9e85855ab64b5984aa7735 | |
parent | f45df8274c4b1592ba07383bb11583f7c5562a38 (diff) |
Split known host file entries on any whitespace
(Not just a single space)
OpenSSH is more permissive in documentation and code
-rw-r--r-- | paramiko/hostkeys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index b189aac6..13a0355d 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -337,7 +337,7 @@ class HostKeyEntry: :param str line: a line from an OpenSSH known_hosts file """ log = get_logger("paramiko.hostkeys") - fields = line.split(" ") + fields = line.split() if len(fields) < 3: # Bad number of fields msg = "Not enough fields found in known_hosts in line {} ({!r})" |