I suggest the following:
first ensure you are running WordPress version 5.5.* as this version adds the endpoints for /wp/v2/plugins see: New and modified REST API endpoints in WordPress 5.5
using basic authentication issue a request as per the following using curl
curl --user username:password https://example.com/wp-json
The first request ...