Tunnel yum traffic through another server via ssh using socks

por | 6 febrero, 2019

Run all commands on the computer with restricted acccess.

in yum.conf set the proxy as follows

proxy=socks5h://localhost:1080

from a terminal type

ssh -D 1080 YOUR_USER@YOUR_SERVER_WITH_FULL_WEB_ACCESS

press enter and type your password.

now, in a separate terminal (not the ssh one) type

yum update