TecMint published a tutorial about how to setup passwordless SSH login for multiple remote servers using script.
Setup Passwordless SSH Login for Multiple Remote Servers Using Script
SSH Key-based authentication (also known as public-key authentication) allows for password-less authentication and it is a more secure and a much better solution than password authentication.
Setup Passwordless SSH Login for Multiple Remote Servers Using Script