In this exercise, we’re going to retrieve our authentication token and use it to authorize on our edge device.
RHSI will use the authentication information stored locally by the oc command, so running these steps will allow us to connect up RHSI in the next exercises.
To grab our token, access the OpenShift web console. In the top right corner, a dropdown menu will have an option called Copy login command, which will open another page. Select this option.

Note:
If you are prompted for a username and password, use the same credentials as the OpenShift console.
This new page will display our token, and allow us to copy the login command directly from the top box. This tab can be left open for the next step.

Note:
This is an example token, not a real one.
Note:
You can access the virtual device also from the Terminal menu inside Cockpit if you want to copy&paste. (Refer back to 1.3 )
The username to access the virtual device is
ansibleand the password is the one of the student user (you can find the IP address of the virtual device using the commandnmcli).Once inside the terminal view you can copy and paste with SHIFT + INSERT.
The openshift-clients package has been installed on our edge devices as part of the RHDE image, providing us with access to the oc command. As such, we can paste the oc login command from the previous step directly on the command line:

If successful, the welcome message should be displayed.
Navigation
| Previous Exercise | Next Exercise |