would like to ssh into other client servers in the same subnet using a cleartext password then sudo to root to turn off commands and reboot. I am purposely not adding the ssh key. I've tried ssh -tt [username]@[host] sudo su -; service snmpd stop; reboot ;How would I pass in the password at the login for both the username and the sudo?
remote sudo to root using plaintext then running commands
linux;bash;shell script;ssh