I want to write a shell script to connect multiple linux hosts and collect server side information / monitoring details.
As I need to ssh username@hostname for the given list of servers, I am just wondering I can enter / hardcode the password onetime and prevent ssh command to prompt for password for each ssh command.
I use the same password for across all servers.
I wrote one shell script, buts its keep on prompting me to enter password for ssh command in the loop.