https://issues.apache.org/bugzilla/show_bug.cgi?id=49154
Summary: sshexec doesn't use hostkey from known_hosts on
different ports for the same host
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Other
AssignedTo: [email protected]
ReportedBy: [email protected]
If you have a known_hosts file with
1.2.3.5 ssh-rsa keyA
then ant sshexec and openssh can use that to connect to 1.2.3.4 on port 22
ssh can use that line to connect to an sshd on 1.2.3.4:2222 as well (without
reconfirming the host key)
ant sshexec rejects the host key on port 2222 in that case
if you have a different host(key) (via firewall/redirect) on port 2222 the ssh
commands allows you to add that different host key in the form
[1.2.3.4]:2222 ssh-rsa keyB
to make ant sshexec work to the same host on different ports you need to add
the second line by hand
1.2.3.4 ssh-rsa keyA
[1.2.3.4]:2222 ssh-rsa keyA
expected would be that sshexec accepts the first host key line already like
openssh does
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.