Home > Linux, transconnect > SSH over Proxy

SSH over Proxy

There was a post on LinDesk about how to use SSH over proxy. Thats surely a big issue for people living in developing country. They have to work behind proxy. So, this post talks about some old way of tunneling. Today we have got transconnect which is much better and makes proxy transparent for applications running through konsole/terminal. All you need to do is something like this : download transconnect from here. Extract it, and follow the following commands :


rohitj@rohitj:~#su
root@rohitj:/home/rohitj# cd Desktop/transconnect/
root@rohitj:/home/rohitj/Desktop/transconnect#make
root@rohitj:/home/rohitj/Desktop/transconnect#make install
root@rohitj:/home/rohitj/Desktop/transconnect#exit
rohitj@rohitj:~/Desktop/transconnect#vim ../../.tconn/.tconn.conf

Now change the file according to your proxy settings. Mainly there are 4 parts where you need to do some changes. 1: set proxy server IP. 2: set username. 3: set password, 4: set local IPs.
After this, when you want to use transconnect just do:

rohitj@rohitj:~/Desktop/transconnect#export LD_PRELOAD=$HOME/.tconn/tconn.so

Or, you can add this to your bash profile.
thats it.
btw, transconnect is GPLed.

Categories: Linux, transconnect Tags:
  1. January 7th, 2008 at 00:33 | #1

    Thanks for the info – I don’t use SSH through a proxy – but I have a few friends in a company who do. I will send them your link.

  2. January 7th, 2008 at 12:13 | #2

    I’ve found a better way :)
    I don’t even have to store my proxy-server-password :P

    I use this tool called “connect-proxy” which my ssh client uses for the ProxyCommand.

    So all I do is `aptitude install connect-proxy` and
    `cat ~/.ssh/config`:

    —– BEGIN —–

    Host 172.*
    ProxyCommand connect-proxy %h %p

    Host *.iitk.ac.in
    ProxyCommand connect-proxy %h %p

    Host *
    ProxyCommand connect-proxy -H username@proxy.in:3128 %h %p

    —– END —–

  3. admin
    January 7th, 2008 at 12:17 | #3

    sweet!!! Its surely a better option for people who do not want to store proxy-user-password info.

  4. September 15th, 2009 at 10:10 | #4

    hey thanks for the howto. SSH works fine even without this, the problem is with things like python/php/ruby scripts. Now i can have those scripts working :)

  5. September 15th, 2009 at 14:09 | #5

    I am glad it was helpful

  1. No trackbacks yet.