I want to make a shell that sends command which runs at sudo level, from a system to multiple system.
for example:
for system in ${systems[@]}; do
ssh $system "echo 'password' | sudo -S yum -y update python" > /dev/null > 2>&1 &
done
So the system that runs the shell will make other servers do the yum update. Every system has the same sudo password.
But the password here is a plain text. If I hash the password, it doesn't work since every system has different hash.
Question :
I want to hash a password in a shell that sends ssh command to other systems. How?
yum -y update python
the only automated command your account needs to run as root?