On a remote server I am administering some things via an ssh connection, however I do not have root access. I also need to connect either via VPN or via another computer in the network. The server is also behind a firewall which blocks any outgoing connections - i.e. I can't access remote websites, svn/git repositories or similar on this machine.
Right now in order to install e.g. new plugins, I download them on the intermediate machine and then copy them via scp to the server. However this is getting cumbersome, esp. as I would like an easier way to update the plugins by just doing a git pull or svn update.
While the network admin grants exceptions to certain sites (e.g. wordpress update site), there are several plugin sites and he is not going to add new servers/ports every other week when I want to try out something new ;-) (for the record, I'm permitted to try these plugins)
What would be the easiest way to get the remote machine to send the traffic from the ssh terminal session through this ssh-connection so it has 'real' internet access (at least for me being logged on there)?
My current idea would be to define the http_proxy env-var, set up a local proxy server on my desktop and connect using -R. Is this the best/easiest solution? Or is there something more 'portable'?