Search code examples
sshproxyssh-tunnel

Ezproxy Access Through SSH Tunnel


When I am working at the University, the program I use for managing papers (Papers2, from mekentosj), connects to the EZproxy, so that it can download papers.

When I am at home, I can't do this. My question is can I somehow setup an SSH tunnel to the University so that the program Papers can log into the EZproxy from home?.

P.S. As a follow-up to comments, I have the right to set up an SSH tunnel at our University, on my Linux machine.


Solution

  • Since you stated that you have SSH access to your university, you can use Dynamic Port Forwarding:

    • ssh -D LOCAL_PORT USER@UNIVERSITY_MACHINE_IP allows you to forward each connection through the LOCAL_PORT you specified on your machine.
      1. Go your OS's connection settings
      2. Check Manual Proxy Settings
      3. Enter 127.0.0.1 in the SOCKS field.
      4. Enter LOCAL_PORT you choose to Port field.

    Now, every connection protocol (HTTP, FTP, etc.) will be forwarded through the university machine you connected.

    Note:

    • Be sure to select an unused port on your computer bigger than 1024 as LOCAL_PORT

    • You can only do this while your SSH connection is still alive.

    • You can also configure browser-only forwarding from the settings of your browser of choice.