Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-440

[SFTP] Stream (e.g. netcat) proxy for Sftp file system (aka ProxyCommand)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Labels:

      Description

      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)

      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);
      

        Attachments

        1. sftp-stream-proxy-v8.diff
          31 kB
          Benjamin Piwowarski
        2. sftp-stream-proxy-v7-bis.diff
          32 kB
          Benjamin Piwowarski
        3. sftp-stream-proxy-v7.diff
          33 kB
          Benjamin Piwowarski
        4. sftp-stream-proxy-v6.diff
          27 kB
          Benjamin Piwowarski
        5. sftp-stream-proxy-v5.diff
          31 kB
          Gary Gregory
        6. sftp-stream-proxy-v4.diff
          30 kB
          Gary Gregory
        7. sftp-stream-proxy-v3.diff
          31 kB
          Benjamin Piwowarski
        8. sftp-stream-proxy-v2.diff
          29 kB
          Benjamin Piwowarski
        9. sftp-stream-proxy.diff
          35 kB
          Benjamin Piwowarski

          Activity

            People

            • Assignee:
              ggregory Gary Gregory
              Reporter:
              bpiwowar Benjamin Piwowarski
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: