Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
Yes, will do. Thanks again for your help! On Wed, Jun 17, 2020 at 12:23 PM Jaikiran Pai wrote: > Yes that looks like a bug. Can you create a bugzilla issue for this please? > > -Jaikiran > On 17/06/20 10:52 am, Dougal Graham wrote: > > OK, after digging a little bit, it turns out that I didn't

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Yes that looks like a bug. Can you create a bugzilla issue for this please? -Jaikiran On 17/06/20 10:52 am, Dougal Graham wrote: > OK, after digging a little bit, it turns out that I didn't have a > default identity file set in my ssh config. > > After rectifying that issue, I thought things were

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
OK, after digging a little bit, it turns out that I didn't have a default identity file set in my ssh config. After rectifying that issue, I thought things were fixed, but actually, they are still broken! [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config [sshexec] Using SSH k

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
You are, of course, correct! Thank you. OK, running with debug I see: [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config [sshexec] Using SSH key file null for host null So maybe it isn't picking up my host/default ssh key properly. ie: maybe I've configured my host wrong, or

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Hello Dougal, On 17/06/20 10:07 am, Dougal Graham wrote: > Hi Jaikaran, > > Thanks for getting back to me. I just got the code downloaded for Ant, > and I think I see the problem: > > protected void loadSshConfig() throws BuildException { > if (sshConfig != null && (userInfo.getName() == null

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
Hi Jaikaran, Thanks for getting back to me. I just got the code downloaded for Ant, and I think I see the problem: protected void loadSshConfig() throws BuildException { if (sshConfig != null && (userInfo.getName() == null || userInfo.getKeyfile() == null)) { It would seem that the sshConfig

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Hello Dougal, Can you get us the ant debug logs (using the -debug switch) when you run this target? -Jaikiran On 17/06/20 9:33 am, Dougal Graham wrote: > Hi Everyone, > > I just upgraded Ant to 1.10.8 so that I can use the new sshConfig feature > of sshexec, so I don't need to hardcode the locat

sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
Hi Everyone, I just upgraded Ant to 1.10.8 so that I can use the new sshConfig feature of sshexec, so I don't need to hardcode the location of the user's keyfile in my script. I am now using it like so: However, I still receive warnings about a missing keyfile or password. Isn't the point of t

Knowledge sharing related to Apache Ant, mainly ZipFile class…

2020-06-16 Thread Roman Horváth
I wish you a good day, this mail is mainly related to the Apache Ant ZipFile class. This mail shares some knowledge and makes some small recommendations for the ZipFile class and one recommendation for the ZipOutputStream class. (I separated them by few —.) ——— The first sentence within the fi