Bug 65089 - Hash known_hosts support needed
Summary: Hash known_hosts support needed
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.10.9
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 1.10.10
Assignee: Ant Notifications List
Depends on:
Reported: 2021-01-19 04:35 UTC by Khurelkhuyag
Modified: 2021-03-07 09:46 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Khurelkhuyag 2021-01-19 04:35:16 UTC
Modern linux machines hasing known host keys and Jsch library supports hash known_hosts file format. But sshexec and scp tasks does not support it. 

Here is jsch example: http://www.jcraft.com/jsch/examples/KnownHosts.java

Problem is there is no way to enable HashKnownHosts=yes option. Please support it.
Comment 1 Stefan Bodewig 2021-03-07 09:46:34 UTC
I've added a new nested element <additionalConfig> that can be used to set any JSch Sesison configuration with b01e7008b

So this would be

  <sshexec ...>
    <additionalConfig key="HashKnownHosts" value="yes"/>