How do you proxy though a server using ssh (socks…) using php’s CURL?

后端 未结 5 882
梦谈多话
梦谈多话 2021-02-10 00:27

I want to use ssh, something like this:

ssh -D 9999 username@ip-address-of-ssh-server

But within php CURL, but I don\'t really see how this cou

5条回答
  •  -上瘾入骨i
    2021-02-10 00:47

    You could use ssh2 module and ssh2_tunnel function to create ssh tunnel throu remote server. Examples available: http://www.php.net/manual/en/function.ssh2-tunnel.php

提交回复
热议问题