issue #307: suppress SSH login banner when verbosity is disabled.

Login banner may include the password prompt, and there is no race-free
way to detect the difference between the banner and the prompt.
pull/308/head
David Wilson 6 years ago
parent 8ce51ec96c
commit 54a93f3c46

@ -161,6 +161,11 @@ class Stream(mitogen.parent.Stream):
bits = [self.ssh_path]
if self.ssh_debug_level:
bits += ['-' + ('v' * min(3, self.ssh_debug_level))]
else:
# issue #307: suppress any login banner, as it may contain the
# password prompt, and there is no robust way to tell the
# difference.
bits += ['-o', 'LogLevel ERROR']
if self.username:
bits += ['-l', self.username]
if self.port is not None:

Loading…
Cancel
Save