When a user without Overall/Read permission try to use Jenkins CLI, the message "You must authenticate to access this Jenkins" appears which is misleading. A message saying that the access is denied would be more appropriate.
- Generate SSH key
- Attach the public key to a user in Jenkins
- Remove permission so that this user does not have the Overall/Read permission
- Run the following command:
- Following message appears: