Run a command as root (this asks for the root password)

pssh

pssh -i -h {{path/to/hosts_file}} -A -l {{root_username}} {{hostname -i}}

click the source code to copy install pssh on any operating system with command-not-found.com