I'm trying to run commands in RunDeck that require sudo su - without having to specify a username or password. I'm using OpenSSH as the Node executor.
When running sudo su - through Rundeck, I am asked for a password.
However, if I open an SSH session from my server to that remote node, and run sudo su -, it's passwordless.
I've set the username in RunDeck XML resource file as the same user that I SSH in that remote node as.
How can I run one or multiple commands using sudo su - (once at the beginning of my workflow) without having to enter a password?
I tried using JSSH and SSH only as my node executor. My SSH key are set as RSA, but I also try converting them as OpenSSH format.
The connection to my remote node with those SSH key works properly since the public key was added to the authorized keys.