Can't run Sudo with SSHJ

35 views
Skip to first unread message

Minh

unread,
Aug 25, 2024, 9:58:58 AMAug 25
to rundeck-discuss
Hi guys,
After switching to SSHJ i'm able to connect my node but i can't run with sudo command.

rac...@rundeck.com

unread,
Aug 26, 2024, 9:24:56 AMAug 26
to rundeck-discuss

Hi,

Probably you’re facing this issue. The workaround is to configure passwordless sudo in your target node. Alternatively, you can apply this patch in the SSHJ plugin. As a last resort, you can go back to the default JSCH plugin, and then add the following config on the target node sshd_config file to support old RSA keys supported by the JSCH plugin:

PubkeyAuthentication yes PubkeyAcceptedKeyTypes=+ssh-rsa

Regards.

Minh

unread,
Aug 26, 2024, 10:24:06 PMAug 26
to rundeck-discuss

Hi,
Thanks for your reply. I have found the error is about sudo-command-pattern and I have added the user to sudoless. Now it's working properly.
Many thanks
Vào lúc 20:24:56 UTC+7 ngày Thứ Hai, 26 tháng 8, 2024, rac...@rundeck.com đã viết:
Reply all
Reply to author
Forward
0 new messages