Hello,
I seem to have programmed myself into a corner. I have a secure server (accessible only through sftp, no ssh shell) and a 'public' server accessible from the web. Should a visitor wish to see his/her content on the secure server, he has but to visit a page on the public server and enter his login/pass to establish an ssh connection to the secure server (I have doubts about how the password is sent to the secure server - I may have to use sftp - but this is secondary for now).
The thing is, I can pull the content off the secure server easily enough, but as much of that content will be images, I'm having problems on how to approach the problem of providing each (sometimes very large) image with a thumbnail. I cannot download the entire file to the public server, treat it with gd, and send it back! This would be a terrible waste of bandwidth.
Is there any way to activate a php script remotely - with php? I would like the remote server to do all the gd work - but how to get the script working with a 'jailed' sftp-filesystem connection only?
Thanks for any and all advice.