Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B7C51830F for ; Thu, 10 Dec 2015 13:30:34 +0000 (UTC) Received: (qmail 79454 invoked by uid 500); 10 Dec 2015 13:30:27 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 79260 invoked by uid 500); 10 Dec 2015 13:30:22 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 79067 invoked by uid 99); 10 Dec 2015 13:30:16 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2015 13:30:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1093CCA1F2 for ; Thu, 10 Dec 2015 13:30:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.981 X-Spam-Level: ** X-Spam-Status: No, score=2.981 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=leveldata-com.20150623.gappssmtp.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id pfhxswTmgmW7 for ; Thu, 10 Dec 2015 13:30:06 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 46E2E265EC for ; Thu, 10 Dec 2015 13:30:06 +0000 (UTC) Received: by oixx65 with SMTP id x65so46343787oix.0 for ; Thu, 10 Dec 2015 05:30:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leveldata-com.20150623.gappssmtp.com; s=20150623; h=mime-version:date:message-id:subject:from:to:content-type; bh=5uEWT2KxoPaFHbTHyEV7N2jq3aVeudol85zsnAf/yWA=; b=JZ14dZlhGJQeKrQcmpGowuIs/eejOtBQWWuIN3ocQ32DB7p1YEbn/n8PjsWhwILwUb oSrzmUUQckxQQ0YzSlaNXfSXLtPuGEcCJvBoph51lNShc9xMb+2n7PiTJ1MGFPTvBkey VBM+psQSpSc4tB6G4v9EVtvHoxm35DUSrkcwctaj4PImpEVMPZyOOlvtxdrBoX2scscG gVA2Cwsw5/876Y7M/uNKjsEKEAhs0q0nO7P6NMkuJc2iuVZ+jqb8/FrRr30G4mPmcWpF FjziQxHj3spe9FoSV5/dlBrRDqYT5kc4bU1pMZWqjCKW+maIYB2wfaOZ3fHSvnpCSDJq gLzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=5uEWT2KxoPaFHbTHyEV7N2jq3aVeudol85zsnAf/yWA=; b=H5MMrlwzeFuifniw0FBOG46+TbjfH5TNa6JskUg/FQH1vBGhG6uyL0ItG97/+snkHB Q8YTurT/gF9dWK5bvY1BYwHY4oxLnlKsxi4IeNs6SFPcFzhX+laZHUnh9PKGLYHCxWXF 8h34TY7/uOWw4pLDdwrH549NeVR3XDy4T4v+rnVfmwhwwIp1aBRv4RjP7GKi5WfNNGxi aL+/VrXAlttSUC3cDh8tDAGn3riasoeohFGv/xxHFAAVFHfGuVB3D/Mw7n2RAbvaxA5y p/MTA5e/Fn5YoVjzBP6haEgmsn/Ug2JXT2A/XN+O3oAD6ETws6ZhHcPyjPICxTaVRfc6 VqlQ== X-Gm-Message-State: ALoCoQm529OpMpU5x2fOX1Lh8MxEipjvfQcmlKQ5WsIZYkWqThC0BkelaUyWODUdpOPPTLsSnKZkmjAyE3rBf5CQG9oAAEZIOy/7Aee0vvC2htPI09xl+FE= MIME-Version: 1.0 X-Received: by 10.202.79.195 with SMTP id d186mr8603648oib.7.1449754205633; Thu, 10 Dec 2015 05:30:05 -0800 (PST) Received: by 10.182.60.68 with HTTP; Thu, 10 Dec 2015 05:30:05 -0800 (PST) Date: Thu, 10 Dec 2015 08:30:05 -0500 Message-ID: Subject: VFS - JSCH - Preferred Authentication - gssapi-with-mic From: Derek Visch To: user@commons.apache.org Content-Type: multipart/alternative; boundary=001a113d7c1270567c05268b349a --001a113d7c1270567c05268b349a Content-Type: text/plain; charset=UTF-8 We updated to jre8 from jre6 a while back, and had an issue with the Kerberos Login and Kerberos Password prompt, basically we're providing the password for an SFTP site, but we get a Kerberos Login prompt which causes the program to wait for user input (Hitting enter manually twice allows the program to run properly) We are using commons-vfs2-2.0 and jsch .1.53 After some digging I found http://stackoverflow.com/questions/10881981/sftp-connection-through-java-asking-for-weird-authentication and https://bz.apache.org/bugzilla/show_bug.cgi?id=53437 But I didn't find anything that talked about VFS2 at all so I thought I'd at least post this here to help the next poor person who runs into this problem, and also ask if this has already been fixed, or if maybe I"m just doing something wrong. Note that the default preferred authentication options for JSCH are "gssapi-with-mic,publickey,keyboard-interactive,password" local = VFS.getManager().toFileObject(new File(args.local_file)) FileSystemOptions opts = new FileSystemOptions(); SftpFileSystemConfigBuilder.getInstance().setPreferredAuthentications(opts, "publickey,keyboard-interactive,password"); //Needed this in order to fix a Kerberos Login / Password issue with the upgrade from jre6 to jre8 remote = VFS.getManager().resolveFile(buildFtpUrl(args), opts); The code above works, what we had before was local = VFS.getManager().toFileObject(new File(args.local_file)) remote = VFS.getManager().resolveFile(buildFtpUrl(args), new FileSystemOptions()); Is there something else I could do here to not have to override the default authentication options, I'd think that if we provided a username and password we would skip the Kerberos authentication piece. Thanks - Derek --001a113d7c1270567c05268b349a--