Blame docs/operations/ci/authenticating_via_cli.md

47c289
## Authenticating via CLI
47c289
Members of the CentOS CI Infrastructure team have admin access for ocp.ci and ocp.stg.ci Openshift clusters for their ACO accounts.
47c289
47c289
To login via the CLI using your main account authenticated via ACO simply:
47c289
47c289
- Authenticate via accounts-centos-org option in ocp.ci/ocp.stg.ci
47c289
- In the top right of the Openshift console, click the drop down menu for your user and click `Copy Login Command`
47c289
- Copy the `Log in with this token: oc login --token=xxxx --server=https://uri` and paste into your terminal
47c289
47c289
To login via the CLI using the `system:admin` user simply:
47c289
47c289
- ssh to the admin node which corresponds with `ocp-ci-management` or `ocp-ci-management-stg` inventory group
47c289
- Change user to the ocp admin user on the admin node choose appropriate version: `sudo su - ocpadm` or for staging `sudo su - ocpadmstg`
47c289
- `export /home/<ocpadmuser>/.kube/config`
47c289
- You should now have `system:admin` access to the cluster.