Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshj and sudo with password authentication is not working #8987

Open
watzsch opened this issue Mar 8, 2024 · 2 comments
Open

sshj and sudo with password authentication is not working #8987

watzsch opened this issue Mar 8, 2024 · 2 comments

Comments

@watzsch
Copy link

watzsch commented Mar 8, 2024

Describe the bug
I want to migrate my Linux project from jsch-ssh to sshj-ssh. When I am activating sshj-ssh, no sudo commands with password authentication are working.
2024-03-08 16_52_58-Commands - Debian

My Rundeck detail

  • Rundeck version: 5.1.0
  • install type: deb
  • OS Name/version: Debian 11 (bullseye)
  • DB Type/version: postgres
  • sshj-plugin version: 0.1.10

To Reproduce
Steps to reproduce the behavior:

  1. get a Debian Node up and running (in my case Debian 12)
  2. add on the node in /etc/ssh/sshd_config the line PubkeyAcceptedAlgorithms +ssh-rsa to make jsch-ssh working...
  3. configure the node only to allow sudo with password
  4. test it with jsch-ssh, for example running a simple command, the result should look like:
2024-03-08 16_32_53-Commands - Debian
  1. add to the node definition parameters to use sshj-ssh:
2024-03-08 16_51_16-rundeck
  1. run the same command in rundeck again... now the result shows an error:
2024-03-08 16_52_58-Commands - Debian

Expected behavior
the sudo authentication and command execution works as with the jsch-ssh plugin.

Screenshots
included in the descriptions...

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser chrome
  • Version 122.0.6261.95

Additional context

@MegaDrive68k
Copy link

Hi @watzsch

It seems related to this one.

@iteossp
Copy link

iteossp commented Mar 14, 2024

Hi @MegaDrive68k

I have the same issue than @watzsch.
According to the link you shared, it seems that new default library sshj-ssh is not compatible with sudo commands yet so we still need to use old jsch-ssh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants