Disable SSH password authentication during tripleo-admin enablement.
SSH password authentication is now disabled when injecting the temporary SSH key during the tripleo-admin user enablement. This change will cause the SSH command to fail quickly if the key is rejected instead of appearing to hang at a password prompt which is never displayed to the user. Change-Id: I7b746b2033c217e78c3d9942995de1479a728943 Closes-Bug: #1792641
This commit is contained in:
parent
0b14fd10fd
commit
2535aca143
@ -163,6 +163,7 @@ def enable_ssh_admin(log, clients, hosts, ssh_user, ssh_key):
|
||||
ssh_options = ("-o ConnectionAttempts=6 "
|
||||
"-o ConnectTimeout=30 "
|
||||
"-o StrictHostKeyChecking=no "
|
||||
"-o PasswordAuthentication=no "
|
||||
"-o UserKnownHostsFile=/dev/null")
|
||||
tmp_key_dir = tempfile.mkdtemp()
|
||||
tmp_key_private = os.path.join(tmp_key_dir, 'id_rsa')
|
||||
|
Loading…
x
Reference in New Issue
Block a user