Probably here you get better, more up to date, tips: Installing packages via an SSH SOCKS proxy on a compute cluster