Sample configuration for disabling the checking is here: http://s.apache.org/6En
Alternatively, you can use ssh on the host to ensure the known_host is recorded. It uses the default ~/.ssh/known_hosts file. - Brett On 09/09/2010, at 5:57 PM, fhomasp wrote: > > Hey, > > > I've been asked to use SFTP to upload artifacts to our webservers using > Maven2. I've gotten this to work like this: > > <profile> > <id>copyDppuwebo01</id> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>wagon-maven-plugin</artifactId> > <configuration> > <fromDir>${build.directory}</fromDir> > <includes>${package}</includes> > <url>sftp://<servername></url> > <toDir>${exportDir}</toDir> > <serverId>ontw</serverId> > </configuration> > </plugin> > </plugins> > </build> > <properties> > <package>*.ear</package> > </properties> > </profile> > > This works well on my local machine, however I need to get this to work on > the continuous build server Hudson. The problem is that the SFTP target > machine asks to store a host key on the connecting server. I'd need Hudson > to answer "yes" to the question however I can't seem to do this, as it's > automated. > Does anyone know how I can store such a key in advance or use a specific tag > for this? > > I know I can define the target server in the settings.xml with an extra > property <privateKey>, so would something similar work as well? i'm > thinking about something like <publicKey>, and/or store the host key on the > Hudson server? > > Or any other way to resolve this? > > Thanks > -- > View this message in context: > http://maven.40175.n5.nabble.com/SFTP-wagon-host-key-requires-user-input-tp2827087p2827087.html > Sent from the Wagon - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: wagon-users-unsubscr...@maven.apache.org > For additional commands, e-mail: wagon-users-h...@maven.apache.org > -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: wagon-users-unsubscr...@maven.apache.org For additional commands, e-mail: wagon-users-h...@maven.apache.org