ApsaraDB for Redis only supports access from Alibaba Cloud intranet. It does not support Internet accesses. That is, only clients of ApsaraDB for Redis installed on ECSs of the same node can be connected to ApsaraDB for Redis for data operations.
Note: Redis-cli is the native command line interface for Redis. You can first download and install Redis on ECS before using Redis-cli. For the Redis installation commands, refer to the official doucment here.
You can run the following redis-cli command to connect to ApsaraDB for Redis:
redis-cli -h instance connection address -a Password