Description
If public keys in known_hosts file are saved in a ECDSA (ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521) format, Maven will fail with the little helpful message:
Unable to create a Wagon instance for host foo.bar.lan
Switching on debug mode will tell you this, but not the root cause:
Caused by: org.apache.maven.wagon.providers.ssh.knownhost.UnknownHostException: The host was not known and was not accepted by the configuration: foo.bar.lan 12:31:44 at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:273) 12:31:44 at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:116) 12:31:44 at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:218) 12:31:44 at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:153) 12:31:44 ... 29 more 12:31:44 Caused by: com.jcraft.jsch.JSchException: reject HostKey: foo.bar.lan 12:31:44 at com.jcraft.jsch.Session.checkHost(Session.java:780) 12:31:44 at com.jcraft.jsch.Session.connect(Session.java:342) 12:31:44 at com.jcraft.jsch.Session.connect(Session.java:183) 12:31:44 at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:253) 12:31:44 ... 34 more