Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29FEB200BC8 for ; Wed, 23 Nov 2016 23:22:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 286C9160AFD; Wed, 23 Nov 2016 22:22:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7253C160AEC for ; Wed, 23 Nov 2016 23:21:59 +0100 (CET) Received: (qmail 19487 invoked by uid 500); 23 Nov 2016 22:21:58 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 19472 invoked by uid 99); 23 Nov 2016 22:21:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2016 22:21:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5582C2C03DE for ; Wed, 23 Nov 2016 22:21:58 +0000 (UTC) Date: Wed, 23 Nov 2016 22:21:58 +0000 (UTC) From: "Nikolas Falco (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WAGON-467) Enforce SSH command to be interactive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 23 Nov 2016 22:22:00 -0000 [ https://issues.apache.org/jira/browse/WAGON-467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15691509#comment-15691509 ] Nikolas Falco edited comment on WAGON-467 at 11/23/16 10:21 PM: ---------------------------------------------------------------- Yes. Follow an example of my settings.xml that upload the maven site of our multi module project {code:xml} docserver user password no publickey,password false {code} The interactive element is not needed, anyway I set it to false (default is true). With above settings it doesn't prompt in case of new host keys to add and for kerberos username and password. Correct values for preferredAuthentications I've got [here|http://stackoverflow.com/questions/29669459/skipping-kerberos-authentication-prompts-with-jsch] was (Author: nfalco79): Yes. Follow an example of my settings.xml that upload the maven site of our multi module project {code:xml} docserver user password no publickey,password false {code} The interactive element is not needed, anyway I set it to false (default is true). With above settings it does not prompt anymore to add new host keys and do not promps for username and password. The value for preferredAuthentications I've got [here|http://stackoverflow.com/questions/29669459/skipping-kerberos-authentication-prompts-with-jsch] > Enforce SSH command to be interactive > ------------------------------------- > > Key: WAGON-467 > URL: https://issues.apache.org/jira/browse/WAGON-467 > Project: Maven Wagon > Issue Type: Improvement > Components: wagon-ssh > Affects Versions: 2.10 > Environment: Maven 3.3 > Jenkins > Reporter: Nikolas Falco > > Hi, > I'm looking a way to deploy the maven site using scp protocol. > I found some issues: > * when I create a Jenkins node the maven process stucks during site:deploy goal because it prompts to me if I want add the destination host key to know_hosts file. > * also with correct credential in settings.xml it prompts to me for Kerberos username [$USER] and password. > After a lot of google search the SSH options command to setup should be: > * StrictHostKeyChecking [ask, no, yes] > * PreferredAuthentications a mix of [gssapi-with-mic, publickey, password, keyboard-interactive] > Configure those option into them into .ssh/config file it's hard to manage in many in case of many machine > Actually there is not way to change those settings in the wagon instance > For StrictHostKeyChecking could be used the settings.xml > {code:xml} > > > docserver > xxx > password > > > no > > > > > {code} > but it fails because KnownHostsProvider it's an interface and if I specify the implementation of knownHostsProvider > {code:xml} > > {code} > fails because ClassNotFound on IOUtil in super constructor method. > Instead for PreferredAuthentications it's an plain string into the code so no way to change it. -- This message was sent by Atlassian JIRA (v6.3.4#6332)