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
You can use both libssh2 and curl from within a PHP script.
I'm not a PHP expert, but here's a rough example:
Another option to consider is using sftp (ftp over ssh) instead of CURL... this is probably the recommended way to copy a file from one server to another securely in PHP...
Even simpler example: