configuration代理terminal(ubuntu)

我正在VirtualBox中运行Ubuntu服务器 ,需要configurationterminal通过代理访问Internet。

我试过了:

export http_proxy=http://USERNAME:[email protected]:8080 

我将以简单的wget debugging模式显示输出:

$ wget http://nexus.sonatype.org/downloads/nexus-webapp-1.3.6-bundle.tar.gz -d

 DEBUG output created by Wget 1.11.4 on cygwin. --2009-11-25 16:35:31-- http://nexus.sonatype.org/downloads/nexus-webapp-1.3.6-bundle.tar.gz Resolving proxy.mycompany.com... 192.168.0.10 Caching proxy.mycompany.com => 192.168.0.10 Connecting to proxy.mycompany.com|192.168.0.10|:8080... connected. Created socket 3. Releasing 0x00690ac0 (new refcount 1). ---request begin--- GET http://nexus.sonatype.org/downloads/nexus-webapp-1.3.6-bundle.tar.gz HTTP/1.0 User-Agent: Wget/1.11.4 Accept: */* Host: nexus.sonatype.org Proxy-Authorization: Basic cmMhc3RhtyuiOlN1cHBheeQyMDA9 ---request end--- Proxy request sent, awaiting response... ---response begin--- HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied) Via: 1.1 MAXIN00 Proxy-Authenticate: Negotiate Proxy-Authenticate: Kerberos Proxy-Authenticate: NTLM Connection: Keep-Alive Proxy-Connection: Keep-Alive Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 4106 ---response end--- 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied) Closed fd 3 2009-11-25 16:35:31 ERROR 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied) 

有人可以给我任何小费吗?

提前致谢

问题是wget只支持代理的基本身份validation,而您的代理不接受这种身份validation。 您的select是:

  1. 修补wget以支持一种可接受的身份validation方法
  2. 让你的代理pipe理员允许基本的身份validation
  3. 不要使用代理
  4. 使用不同的代理(无论是否需要身份validation,或接受基本身份validation)

使用ntlmaps,您可以在本地机器上运行Python代理并处理NTLM身份validation。

使用ISA代理的设置编辑ntlmaps的configuration,然后将http_proxy指向本地ntlmaps代理。