You get an error:
sudo: a password is required
It doesn't mean you can't connect to the target machine it means you need to provide a password to run a command with elevated permissions (or that you can't run a command with elevated permissions altogether).
On the contrary, it means the connection is being established with no problems.
Fix your sudoers
configuration on the affected machines.