Add authenticated proxy to terminal based applications

aboSamoor | October 5, 2008 | 11:28 am

My friend Mustafa talked about adding proxy as environment variable by exporting the http proxy server in a previous post.
I another problem,found what about a proxy server that needs authentication ? There is no problem if the application read the Gnome/KDE proxy settings because you can add the authentication parameters easily there, the problem comes from wget and other terminal based programs…

This may help you ;)

export http_proxy="http://username:password@Proxy_IP_address:Proxy_port"

and this for ftp server

export ftp_proxy="ftp://username:password@Proxy_IP_address:Proxy_port"

to make them permanent you have to add the above lines to /etc/bash.bashrc, you can make user specific by adding the lines to /home/user/.bashrc instead of the main .bashrc

One response

Hmm interesting but man i was wondering is there

sameer asal | October 6, 2008 | 8:52 pm

Hmm
interesting
but man i was wondering
is there some way to make it ask for proxy configuration from the System proxy configuration??

it is really annoying when you work in different places.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>