[
https://issues.apache.org/jira/browse/WAGON-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519133#comment-14519133
]
Gerrit Hohl commented on WAGON-415:
-----------------------------------
Roland Hauser mailed me the following workaround this Monday:
{quote}
Hi Gerrit
Please update your task with a comment referencing following link:
http://www.inqa.be/en/content/jenkins-authenticity-host-cant-be-established
You'll find an article how to work around the connection issue:
"There is a maven issue which prevents the deployment of a maven site with
Ubuntu LTS 12. By default ECDSA keys are stored in the known_hosts file. When
scp'ing files from the jenkins account, using wagon-ssh, the build hangs with
"The authenticity of host <hostname> can't be established."
The reason for this problem is the EDCSA entry in the known_hosts file. For
now, maven apparently requires a ssh-rsa entry. You can obtain the ssh-rsa
entry by issuing
ssh-keyscan -t rsa hostname >> known_hosts"
Regards,
Roland
{quote}
I have to admit that I haven't tested it yet. And it's only a workaround, not a
real solution (at least in my opinion). The error message should be improved
and non-RSA keys supported.
> wagon-ssh doesn't load known_hosts from Jenkins home directory
> --------------------------------------------------------------
>
> Key: WAGON-415
> URL: https://issues.apache.org/jira/browse/WAGON-415
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-ssh
> Affects Versions: 2.6
> Environment: Windows Server 2008 R2 Standard
> Apache Tomcat 7.0.26 Server
> Jenkins v1.527
> Maven 3.0.4
> maven-site-plugin 3.3
> wagon-ssh 2.6
> Reporter: Gerrit Hohl
>
> For some people this might be only an improvement, for myself it is a bug.
> I'm trying to do a site-deploy using wagon-ssh. I have configured the server
> including the username and password in the settings.xml of Maven.
> If I try this locally Maven asks me if I want to continue establishing the
> connection showing me the RSA key fingerprint of the server. If I agree by
> typing 'yes' it creates the file C:\Users\[MY-USER]\.ssh\known_hosts and
> doesn't ask me ever again.
> But if I try this using Jenkins I can't accept the RSA key fingerprint as
> there is no interactive mode. I thought I could copy (or create) the
> known_hosts file on the server. I tried doing this in
> [JENKINS-HOME]\.ssh\known_hosts, but it didn't work.
> Then I tried to run Maven in the verbose mode (-X / --debug). I got a huge
> log file, but I don't see any path in which wagon-ssh expects the
> known_hosts_file also here. But without that I don't know how I should
> determine where to put.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)