Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
I'm running it from the command line for this but I use the ant installation inside of Jenkins. Not sure how to invoke an interactive shell. I don't think I've ever done that. On Wed, Dec 28, 2022 at 2:53 PM ilya Basin wrote: > Have you tried running the Ant task from an interactive shell or w

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread ilya Basin
Have you tried running the Ant task from an interactive shell or was it always being launched by Jenkins? On 29.12.2022 0:14, Eric Fetzer wrote: > OK, here's what we've put together: > > On the server that this is trying to ssh to and run a command, it gets an > error:  PAM: pam_open_session():

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
OK, here's what we've put together: On the server that this is trying to ssh to and run a command, it gets an error: PAM: pam_open_session(): Cannot make/remove an entry for the specified session The quick fix (which the SA's aren't willing to make long term is to comment out the line: “session

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Ilya Basin
I don't think we'll help more without seeing the problem details. On 28.12.2022 23:16, Eric Fetzer wrote: > Hmmm, that command works at the command line. > > On Wed, Dec 28, 2022 at 10:54 AM Ilya Basin > wrote: > > Hi Eric. > > I hope you're using the modern

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
Hmmm, that command works at the command line. On Wed, Dec 28, 2022 at 10:54 AM Ilya Basin wrote: > Hi Eric. > > I hope you're using the modern OpenSSH client program. Something like this: > > ssh -F none \ > -oBatchMode=yes \ > -oUser=myUser \ > -oIdentityAgent=none \ > -oIdentityFile=/v

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Stefan Bodewig
On 2022-12-28, Eric Fetzer wrote: > Hi! Can anyone tell me what the command line equivalent to the following > directive in ant is? I'm afraid this is not easy to answer as Ant does not use the command line for this. Ant uses http://www.jcraft.com/jsch/ in order to execute the command and it is

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Ilya Basin
Hi Eric. I hope you're using the modern OpenSSH client program. Something like this: ssh -F none \ -oBatchMode=yes \ -oUser=myUser \ -oIdentityAgent=none \ -oIdentityFile=/var/lib/jenkins/.ssh/id_rsa \ -oPort=1401 \ -oUpdateHostKeys=no \ -oStrictHostKeyChecking=no \ myHost.myDomai

SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
Hi! Can anyone tell me what the command line equivalent to the following directive in ant is? We've found a bug with this command in RHEL 8 and the RedHat folks won't consider the sshexec command as a repro. I've tried the best I can figure and the command works from the command line h