Tuesday, November 27, 2012

Adding proxy in Linux

Adding proxy in Linux
===================

Run the below commands  in terminal to get proxy details for temporary.

export http_proxy=http://proxy-ip:port/
export https_proxy=https://proxy-ip:port/

export http_proxy=http://proxy-url:port/
export https_proxy=https://proxy-url:port/


Add the proxy details in /etc/profile to permanent changes and access to all users (global set),
or else add in user .bach_profile file to get effect on selected user.


---------------------------------------------

For FTP

$export ftp_proxy=http://<proxy-server-ip>:<port>

with auth
$export ftp_proxy=http://<user>:<password>@<proxy-server-ip>:<port>

------------------------------------------

For svn

#vi /etc/subversion/servers


[global]
#http-proxy-host=my.proxy
#http-proxy-port=80
#http-proxy-username=[username]
#http-proxy-password=[password]

No comments:

Post a Comment