diff --git a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py index 272b34edb..b671cdaf1 100644 --- a/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py +++ b/monkey/infection_monkey/credential_collectors/ssh_collector/ssh_handler.py @@ -110,7 +110,7 @@ def _get_ssh_files( collected_credentials = Credentials( identity=Username(info["name"]), - secrets=SSHKeypair( + secret=SSHKeypair( info["private_key"], info["public_key"] ), )