I have a redis cluster up and running, and when requirepass is not enabled, redis-cli get/set request doesn't have any issue at all, even though the request get redirected according to hash slots. xx.xx.xx.xx:7003> set key41 t -> Redirected to slot [14606] located at 129.40.119.94:7001 OK xx.xx.xx.xx:7003> get key40 "t" xx.xx.xx.xx:7003> get key41 -> Redirected to slot [14606] located at 129.40.119.94:7001 "t"
but after enable requirepass, I have to specify password every time my redis-cli get/set requests get redirected to other nodes. xx.xx.xx.xx:7004> set key50 test -> Redirected to slot [6686] located at 129.40.119.94:7003 (error) NOAUTH Authentication required. xx.xx.xx.xx:7003> set key51 test (error) NOAUTH Authentication required. xx.xx.xx.xx:7003> auth zlinux OK xx.xx.xx.xx:7003> set key50 test OK
Is there a way to bypass specifying password every time the redis request (get/set) got redirected? or maybe there are some parameter to avoid this situation? Thanks.
Comment From: sundb
is -a <pass> what you want?
Comment From: leoli19
Thanks @sundb it works. with message "Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.".