I had 8 Servers and I need to copy files from my servers to One different server, for this purpose I had written a shell script to copy all the files from the servers using scp command, so for this it is asking for password for each and every time. To avoid this
- Can it be possible to pass the password to the shell script in the command prompt by reading the password value from some file?
- I had tried using sshpass also but it is not solving the problem. Apart from this solution, other solution will be helpful.
I am new to shell script to need some help. Please if anyone knows how to achieve this, please share...thanks.