I'm searching for a class / extension / whatever that allows me to use a proxy for an SFTP connection in PHP.
I've checked the ssh2_ftp function and phpseclib, but I didn't find any reference to proxy settings...
Any idea?
Would you be tunneling over SOCK4 or SOCK5 or HTTP CONNECT? Or something else?
One thing you might be able to do is modify phpseclib. eg. in the Net_SSH2 constructor, add in the code to connect to the proxy via SOCK4/5/whatever and then just let Net_SSH2 behave normally after that.
I have had no problem with using https://github.com/phpseclib/phpseclib and would recommend this method. It also requires no installation on the server and is very easy to achieve most SFTP actions required.