So I know that to enable Passwordless SSH I need to generate a public authentication key and append it to the remote hosts ~/.ssh/authorized_keys file, generating a new SSH key pair.
The question is can I have an array of passwords and try one after another until the right password is found or do I need to have actual pairs? so knowing which host has what password. reason: I have thousands of hosts and I don't know what host has what password but I do have all possible passwords list.
I want to use GNU parallel to ssh but for that I need a Passwordless SSH.
I guess another option would be to run in parallel my script that tries different passwords until success.
ssh-copy-id
).