Commit 496186f5 by Brian Coca

makes ssh plugin resilient against invalid entries in hosts file

fixes #10238
parent e3490043
......@@ -243,6 +243,8 @@ class Connection(ConnectionBase):
tokens = line.split()
if not tokens:
continue
if isinstance(tokens, list) and tokens: # skip invalid hostlines
if tokens[0].find(self.HASHED_KEY_MAGIC) == 0:
# this is a hashed known host entry
try:
......
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