Execute script on local server as normal user to run commands on remote server
I have an immutable script on server A, it executes a maintenance command on the remote servers where elevated privileges are needed.
I want the developers on server A to execute the script and run it without being prompted for a password.
The script contains scp root@serverB and ssh 'root@serverB', if run as root it runs great since I am using ssh keys. However, as regular users they are prompted for a password.
If I do created their group on server B...etc and give the group sudo it would still ask for passwords right ?
Can I overcome this ?