Curl GoogleCloud-404用于实例请求

Curl GoogleCloud-404用于实例请求,curl,nuget,google-compute-engine,google-cloud-platform,Curl,Nuget,Google Compute Engine,Google Cloud Platform,我在谷歌云计算上有一个实例(vm)。不,我有一个问题,如果我在一台机器上使用ssh,我就无法访问某些资源(传出) 我有一个404-找不到 例如 成功 $ curl http://stackoverflow.com/questions/39137875/dotnet-restore-failed-on-build-server 失败(404) 如何解决这个问题 更新 curl-v的输出为 curl -v https://api.nuget.org/v3-flatcontainer/remotio

我在谷歌云计算上有一个实例(vm)。不,我有一个问题,如果我在一台机器上使用ssh,我就无法访问某些资源(传出)

我有一个404-找不到

例如

成功

$ curl http://stackoverflow.com/questions/39137875/dotnet-restore-failed-on-build-server
失败(404)

如何解决这个问题

更新
curl-v
的输出为

curl -v https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg
* Hostname was NOT found in DNS cache
*   Trying 68.232.34.200...
* Connected to api.nuget.org (68.232.34.200) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
> Host: api.nuget.org
* Server certificate:
*        subject: CN=*.vo.msecnd.net
*        start date: 2016-08-20 21:42:56 GMT
*        expire date: 2018-04-20 21:42:56 GMT
*        subjectAltName: api.nuget.org matched
*        issuer: C=US; ST=Washington; L=Redmond; O=Microsoft Corporation; OU=Microsoft IT; CN=Microsoft IT SSL SHA2
*        SSL certificate verify ok.
> GET /v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg HTTP/1.1
> User-Agent: curl/7.38.0
> Host: api.nuget.org
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Content-Type: text/html
< Date: Thu, 25 Aug 2016 07:38:40 GMT
* Server ECAcc (lcy/1D73) is not blacklisted
< Server: ECAcc (lcy/1D73)
< Content-Length: 345
< 
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
                <title>404 - Not Found</title>
        </head>
        <body>
                <h1>404 - Not Found</h1>
        </body>
</html>
* Connection #0 to host api.nuget.org left intact
curl-vhttps://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg
*在DNS缓存中找不到主机名
*正在尝试68.232.34.200。。。
*连接到api.nuget.org(68.232.34.200)端口443(#0)
*已成功设置证书验证位置:
*卡菲尔:没有
CApath:/etc/ssl/certs
*SSLv3,TLS握手,客户端hello(1):
*SSLv3,TLS握手,服务器hello(2):
*SSLv3,TLS握手,证书(11):
*SSLv3、TLS握手、服务器密钥交换(12):
*SSLv3,TLS握手,服务器完成(14):
*SSLv3、TLS握手、客户端密钥交换(16):
*SSLv3,TLS更改密码,客户端你好(1):
*SSLv3,TLS握手,完成(20):
*SSLv3,TLS更改密码,客户端你好(1):
*SSLv3,TLS握手,完成(20):
*使用TLSv1.2/ECDHE-RSA-AES128-GCM-SHA256的SSL连接
>主持人:api.nuget.org
*服务器证书:
*主题:CN=*.vo.msecnd.net
*开始日期:2016-08-20 21:42:56 GMT
*到期日期:2018-04-20 21:42:56 GMT
*主题名称:api.nuget.org
*发行人:C=美国;ST=华盛顿;L=雷蒙德;O=微软公司;OU=微软IT;CN=微软IT SSL SHA2
*SSL证书验证正常。
>GET/v3 flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg HTTP/1.1
>用户代理:curl/7.38.0
>主持人:api.nuget.org
>接受:*/*
> 
未找到
在做其他事情等了一整天之后,它现在工作了。在做其他事情等了一整天之后,它现在工作了。
curl -v https://api.nuget.org/v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg
* Hostname was NOT found in DNS cache
*   Trying 68.232.34.200...
* Connected to api.nuget.org (68.232.34.200) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
> Host: api.nuget.org
* Server certificate:
*        subject: CN=*.vo.msecnd.net
*        start date: 2016-08-20 21:42:56 GMT
*        expire date: 2018-04-20 21:42:56 GMT
*        subjectAltName: api.nuget.org matched
*        issuer: C=US; ST=Washington; L=Redmond; O=Microsoft Corporation; OU=Microsoft IT; CN=Microsoft IT SSL SHA2
*        SSL certificate verify ok.
> GET /v3-flatcontainer/remotion.linq/2.1.1/remotion.linq.2.1.1.nupkg HTTP/1.1
> User-Agent: curl/7.38.0
> Host: api.nuget.org
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Content-Type: text/html
< Date: Thu, 25 Aug 2016 07:38:40 GMT
* Server ECAcc (lcy/1D73) is not blacklisted
< Server: ECAcc (lcy/1D73)
< Content-Length: 345
< 
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <head>
                <title>404 - Not Found</title>
        </head>
        <body>
                <h1>404 - Not Found</h1>
        </body>
</html>
* Connection #0 to host api.nuget.org left intact