Results 1 to 3 of 3

Thread: Proxy Scripting

  1. #1
    Join Date
    Oct 2008
    Beans
    122

    Smile Proxy Scripting

    Hi

    I often connect to an external server via ssh and setup a socks proxy on my machine and configure application to go through it.

    I know very little about scripting but I assume it would be possible to do this with a script and save the script to the desktop.

    The command I use is:

    ssh -D 9999 username@sshserver.com -p ssh_port_on_server

    Thanks Dan

  2. #2
    Join Date
    Dec 2007
    Location
    Buenos Aires, Argentina
    Beans
    1,231
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Proxy Scripting

    You can, for instance, place that line onto your ~/.bashrc file as an alias, like this:
    Code:
    alias proxy_conect='ssh -D 9999 username@sshserver.com -p ssh_port_on_server'
    Therefore, you open a Terminal, and type:
    Code:
    proxy_connect ENTER
    And It'll will execute the connection string.
    Another option might be to add an entry onto your .ssh/config file... With the parameters to connect to the SSH server.
    Live long and prosper.
    And use lotsa Linux, BSD, and Emacs.

  3. #3
    Join Date
    Oct 2008
    Beans
    122

    Re: Proxy Scripting

    Thanks!! That has worked perfectly!

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
  •