mirror of
https://github.com/xxh/xxh
synced 2024-11-26 05:40:16 +00:00
adds Password:
pattern to password input
This commit is contained in:
parent
e66f0a306d
commit
043d414897
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class xxh:
|
|||
user_host_password = None
|
||||
user_key_password = None
|
||||
patterns = ['Are you sure you want to continue connecting.*', "Please type 'yes' or 'no':",
|
||||
'Enter passphrase for key.*', 'password:', pexpect.EOF, '[$#~]', 'Last login.*']
|
||||
'Enter passphrase for key.*', 'Password:', 'password:', pexpect.EOF, '[$#~]', 'Last login.*']
|
||||
while True:
|
||||
try:
|
||||
i = sess.expect(patterns, timeout=self.pexpect_timeout)
|
||||
|
|
Loading…
Reference in a new issue