So... this is my problem:
I can access to a VPN from my machine. I can access to a server in the VPN via SSH, but this machine has no access inside out because a firewall is blocking the reverse ssh connections. So I can't use Internet via tunnel to use apt-get.
How can I emulate:
sudo ssh -D 9999 root@<machineoutsidevpn>
But from outside the VPN. Or any way to use the Internet connection to install packages?
Computer A
Computer B
ssh into Computer B from Computer A
sudo ssh -R <selected port>:us.archive.ubuntu.com:80 [email protected]
Edit Computer B's /etc/apt/apt.conf
to include the following lines:
Acquire::http::Proxy "http://localhost:<selected port>";
Acquire::https::Proxy "https://localhost:<selected port>";
Run your apt-get update
or install
or upgrade
on Computer B and it should work.
This can also be achieved using Putty (assuming that Computer A is the Windows machine).
<selected port>
us.archive.ubuntu.com:80