mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #16159 from thatch45/passwd_fix
Add passwd opts checking to key_opts
This commit is contained in:
commit
2f524b638c
@ -84,8 +84,11 @@ class Shell(object):
|
||||
'''
|
||||
options = [
|
||||
'KbdInteractiveAuthentication=no',
|
||||
'PasswordAuthentication=no',
|
||||
]
|
||||
if self.passwd:
|
||||
options.append('PasswordAuthentication=yes')
|
||||
else:
|
||||
options.append('PasswordAuthentication=no')
|
||||
if self.opts['_ssh_version'] > '4.9':
|
||||
options.append('GSSAPIAuthentication=no')
|
||||
options.append('ConnectTimeout={0}'.format(self.timeout))
|
||||
|
Loading…
Reference in New Issue
Block a user