Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2BA9D4C4 for ; Sun, 28 Oct 2012 07:57:19 +0000 (UTC) Received: (qmail 79769 invoked by uid 500); 28 Oct 2012 07:57:16 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 79572 invoked by uid 500); 28 Oct 2012 07:57:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 79525 invoked by uid 99); 28 Oct 2012 07:57:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Oct 2012 07:57:13 +0000 Date: Sun, 28 Oct 2012 07:57:13 +0000 (UTC) From: "Benjamin Piwowarski (JIRA)" To: issues@commons.apache.org Message-ID: <1681417096.36260.1351411033353.JavaMail.jiratomcat@arcas> In-Reply-To: <1690237570.13857.1349782922957.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (VFS-440) [SFTP] Stream (e.g. netcat) proxy for Sftp file system (aka ProxyCommand) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benjamin Piwowarski updated VFS-440: ------------------------------------ Attachment: sftp-stream-proxy-v7.diff Patch v7 includes SftpStreamProxy. I left the changes in PermissionsTests.java in the effort of cleaning up output of Sftp tests: it just removes a System.err.println - System.err.println(file.setReadable(true, true)); + file.setReadable(true, true); > [SFTP] Stream (e.g. netcat) proxy for Sftp file system (aka ProxyCommand) > ------------------------------------------------------------------------- > > Key: VFS-440 > URL: https://issues.apache.org/jira/browse/VFS-440 > Project: Commons VFS > Issue Type: Improvement > Reporter: Benjamin Piwowarski > Priority: Minor > Labels: proxy, sftp > Attachments: sftp-stream-proxy.diff, sftp-stream-proxy-v2.diff, sftp-stream-proxy-v3.diff, sftp-stream-proxy-v4.diff, sftp-stream-proxy-v5.diff, sftp-stream-proxy-v6.diff, sftp-stream-proxy-v7.diff > > > What I propose is to add the possibility to connect to a remote SSH server through an SSH connection stream (instead of an HTTP or SOCKS proxy). See for instance > http://backdrift.org/transparent-proxy-with-ssh > for a use case. > This simulates a ProxyCommand where the command is run on a SSH host. > The patch also contains a test for the new functionality. > Example of use (with the netcat command nc -q 0 HOSTNAME PORT) > {code:java} > builder.setProxyType(opts, SftpFileSystemConfigBuilder.PROXY_STREAM); > builder.setProxyCommand(opts, SftpStreamProxy.NETCAT_COMMAND); > builder.setProxyHost(opts, "gate.way.host"); > builder.setProxyPort(opts, 22); > builder.setProxyOptions(opts, proxyOptions); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira