Disable password authentication

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-09-27 20:02:36 +01:00 committed by Pedro Algarvio
parent 9da38c3898
commit 313264bbe0

View file

@ -860,6 +860,7 @@ class VM:
StrictHostKeyChecking=no
UserKnownHostsFile=/dev/null
ForwardAgent={forward_agent}
PasswordAuthentication no
"""
)
self.ssh_config_file.write_text(ssh_config)