Openshift: oc login failed

6/3/2019

There is an openshift cluster in our organization, and I always get an error when using "oc login" on my computer. However, I can log in successfully by using others' computers. The error is the following:

oc login error: dial tcp: i/o timeout - verify you have provided the correct host and port and that the server is currently running

Thanks

-- Wei Dong
kubernetes
openshift

1 Answer

6/3/2019

try this

oc login <web interface url>

for example

oc login https://192.168.1.100:8443

OR

oc login https://myopenshift.com:8443
-- swfnagya
Source: StackOverflow