Modifying sshj plugin for upgrade to Rundeck 5.5

28 views
Skip to first unread message

Russ Robinson

unread,
Sep 4, 2024, 1:32:24 PMSep 4
to rundeck-discuss
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.

rac...@rundeck.com

unread,
Sep 4, 2024, 4:06:49 PMSep 4
to rundeck-discuss
Thanks, Russ!
Reply all
Reply to author
Forward
0 new messages