As we want to upgrade from Rundeck 4.7 to 5.5; we noticed keepalive was re-enabled back into the sshj-ssh plugin. However, the enablement of tty has still not be re-added (and even the project-level check-box to EnablePTY is no longer available). Hence, we are adding the following line within src/main/java/com/plugin/sshjplugin/model/SSHJExec.java after the line
- session = ssh.startSession();
to be:
- session = ssh.startSession();
- session.allocateDefaultPTY();
and re-compiling it to use the fixed jar.
Hope this might help anyone else with sudo issues due to corporate requirements on their servers to have tty enabled for sudo.