I am getting this error while trying to login to the rancher CLI using the bearer token. The command I use is this:
./rancher login https://<SERVER_URL> --token <BEARER_TOKEN>
I am creating the token using the Add Key button on the rancher UI and scoping the generated tokens to the cluster I want to manage.
This is the complete error message:
FATA[0002] Bad response statusCode [401]. Status [401 Unauthorized]. Body: [message=clusterID does not match]
Any ideas? Thanks...