-
Notifications
You must be signed in to change notification settings - Fork 1.1k
HTTP/SOCKS Proxy support through SFTP protocol has been removed #8559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
See this one for more info: #3988 And then this one: apache/mina-sshd#309. I see that there is a If you are familiar with this SOCKS feature, we are OK for contribution to make respective fix in the |
Hello Artem, Many thanks for your fast answer. My requirement is mainly about the HTTP Proxy (using CONNECT method). I found 2 differents ways to manage proxy but I'm not an expert with this.
1/ Connect to proxy with simple TCP Socket. As I'm migrating my project to Spring Boot 3, I have so many other regressions to fix, I temporarly downgrade to the spring integration sftp v5.5.15 (last version with Jsch). It would be a real pleasure to contribute to the project within the limits of my skills and my time ;) |
See this comment from MINA contributors: apache/mina-sshd#309 (comment). The
So, probably that jGit solution may help you somehow as an interim workaround. |
Indeed, I missed this constructor. |
Well, it depends how much effort it will take to implement such a customization in the |
See the last comment in the mentioned MINA issue: apache/mina-sshd#309 (comment) The sample is pretty clear:
So, I guess we can address this issue as a doc for now until Apache MINA comes up with some out-of-the-box solution for us. |
Fixes spring-projects#8559 An out-of-the-box `SshClient` does not provide a smooth HTTP/SOCKS proxy configuration. * Mention in the `sftp.adoc` that `JGitSshClient`, configured with SOCKS, can be injected into a `DefaultSftpSessionFactory` * Fix Javadocs for `DefaultSftpSessionFactory`, respectively
* GH-8559: Document how to enable SOCKS for SFTP Fixes #8559 An out-of-the-box `SshClient` does not provide a smooth HTTP/SOCKS proxy configuration. * Mention in the `sftp.adoc` that `JGitSshClient`, configured with SOCKS, can be injected into a `DefaultSftpSessionFactory` * Fix Javadocs for `DefaultSftpSessionFactory`, respectively * Fix language in doc Co-authored-by: Gary Russell <[email protected]> --------- Co-authored-by: Gary Russell <[email protected]>
In what version(s) of Spring Integration are you seeing this issue?
6.0.2
Describe the bug
Unable to connect through a HTTP/SOCKS proxy to a (S)FTP server anymore because "setProxy(...)" method in class DefaultSftpSessionFactory has been removed during the MINA migration (https://github.com/spring-projects/spring-integration/commit/4aa2f91bd9ae023a59cc2e9eb5622420cf0a038e#diff-cf4cad9de8156c5ff3155fa553b9e01af9d0a62a128dc58858f6ee62fcc14cbe)
Expected behavior
Be able to connect to a FTP server (protocol SFTP) through a HTTP/SOCKS proxy. (ProxyJump is not the same thing, I think)
The text was updated successfully, but these errors were encountered: