1
2
3
4
5
6
7
8
9
10
11
# http_proxy
export http_proxy=host:port

# https_proxy
export https_proxy=host:port

# ftp_proxy
export ftp_proxy=host:port

# rsync proxy
export RSYNC_PROXY=host:port
1
# ssh over http_proxy depends on your tools used.
# Modify .ssh/config file for host configuration:
# Following are connect.c and corkscrew example.
# For connect.c, -h option means use http_proxy
# environment. 
Host *
  ProxyCommand corkscrew http-proxy.example.com 8080 %h %p
  ProxyCommand connect -h %h %p
  ProxyCommand connect -H proxy-host:proxy-port %h %p
1
2
# git over http_proxy
export GIT_PROXY_COMMAND="connect -h $@"
知识共享授权条款
本著作Chen, Zai-Chun制作,以知识共享 姓名标示-相同方式分享 4.0 国际 授权条款释出

留言

Nov 17 2011