我无法使用 rhc setup 设置我的服务器。这是我的输出
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
DEBUG: Running server_stage
DEBUG: Running login_stage
DEBUG: Connecting to https://cluster01vt.office.noris.gr:8443/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://cluster01vt.office.noris.gr:8443/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: Certificate validation failed: self signed certificate
The server's certificate is self-signed, which means that a secure connection
can't be established to 'cluster01vt.office.noris.gr:8443'.
You may bypass this check, but any data you send to the server could be
intercepted by others.
Connect without checking the certificate? (yes|no): y
DEBUG: Connecting to https://cluster01vt.office.noris.gr:8443/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
DEBUG: Created new httpclient
DEBUG: Request GET https://cluster01vt.office.noris.gr:8443/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 403 16 ms
You are not authorized to perform this operation.
请记住,当我尝试使用浏览器访问该页面时,我收到 403 错误。JSON 响应:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "User \"system:anonymous\" cannot \"get\" on \"/broker/rest/api\"",
"reason": "Forbidden",
"details": {},
"code": 403
}
为什么 rhc 不要求我提供凭证?有什么想法吗?
答案1
rhc
是旧版本 OpenShift 的命令行实用程序。
您需要使用oc
。请参阅文档。