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

后端 未结 5 896
梦谈多话
梦谈多话 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条回答
  •  滥情空心
    2021-02-10 00:50

    See my comment on Qwerty's proposed solution. I think you are looking in the wrong direction to try to solve this question. Instead, you should just use cURL and create a personal certificate for yourself. You say you want to use SSH for safety, but why not a certificate instead?

    This site will let you easily create one http://www.cacert.org/

    Since it's just for you, you can add an exception to your browsers so they won't complain of a bad certificate. No need for ssh!

提交回复
热议问题