IPFS CLI connected to remote IPFS daemon

These settings specify how the IPFS daemon’s API server behaves, not how the ipfs command as a client to the API makes requests. You need to use ipfs --api to point to a non-local/non-default endpoint.

Also see Configure --api through .ipfs/config.

I don’t think you can use ipfs to a remote endpoint with basic auth though, out of the box.