Results 1 to 2 of 2

Thread: How to ssh tunnel to a computer that uses proxy

  1. #1
    Join Date
    Jul 2011
    Beans
    12

    Question How to ssh tunnel to a computer that uses proxy

    I am on computer C1
    created a dynamic ssh tunnel to C2
    configured browser of C1 to use tunneled socks5 proxy
    But C2 requires proxy with authentication to connect internet.
    I have set network-proxy under gnome-control-center of C2 but still i cant connect to internet from C1.

    Suggestions welcomed.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,163
    Distro
    Ubuntu 14.04 Trusty Tahr

    port forwarding

    The proxy on C2 probably listens on a specific port. So rather than make a dynamic (SOCKS) proxy, just forward a local port on C1 to the proxy's port on C2.


    Code:
    ssh -L 3129:localhost:3128 c2.example.org
    Using that, by connecting to 3129 on the local host you are really connecting to 3128 on host C2.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •