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 <basini...@gmail.com > <mailto:basini...@gmail.com>> 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=/var/lib/jenkins/.ssh/id_rsa \ > -oPort=1401 \ > -oUpdateHostKeys=no \ > -oStrictHostKeyChecking=no \ > myHost.myDomain \ > "touch /myPath/toMyFiles/test.txt" > > > Note that the java SSH library may use obsolete encryption algorithms > which you'll also have to force. See https://linux.die.net/man/5/ssh_config > <https://linux.die.net/man/5/ssh_config> > > > On 28.12.2022 21:39, Eric Fetzer wrote: > > Hi! Can anyone tell me what the command line equivalent to the > following > > directive in ant is? > > > > <sshexec host="myHost.myDomain" > > username="myUser" > > keyfile="/var/lib/jenkins/.ssh/id_rsa" > > passphrase="" > > command="touch /myPath/toMyFiles/test.txt" > > trust="true" > > timeout="3000000" > > verbose="true" > > port="22" > > /> > > > > 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 however I've tried. Thanks! > > Eric > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org