4

I checked the docs but I can't find any reference to proxy usage for ssh2_sftp functions in PHP...

How can I use a proxy with those functions?

napolux
  • 15,574
  • 9
  • 51
  • 70
  • 1
    You can't. Although that said you're not gonna be able to use a lot of proxies with this. A SOCKSv4 or a SOCKSv5 or a HTTP CONNECT proxy, sure, but not a run of the mill HTTP proxy. My thought: maybe try http://phpseclib.sourceforge.net/ . That doesn't support proxying out of the box either but it is pure PHP so you modifying it would probably be a lot easier. You could ask for help on SO as well. – neubert Feb 21 '14 at 18:50
  • Tried PHPsecLib, with no success... – napolux Feb 22 '14 at 20:31
  • What'd you try? As I said, you'd need to modify phpseclib to work. Not even phpseclib is going to work out of the box. – neubert Feb 22 '14 at 21:12

0 Answers0