ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaikiran Pai <>
Subject Re: sshexec sshConfig does not seem to work as expected (by me)
Date Wed, 17 Jun 2020 04:39:55 GMT
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 || userInfo.getKeyfile()
== null)) {
> It would seem that the sshConfig file is only used if both name and
> keyfile are empty.

Looking at that code, the sshConfig file will be used if the username
*or* (not and) keyfile is not specified. i.e. if either of them is not
specified. So from what I saw in the original task definition that you
pasted, I think the sshConfig file should have been used.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message