I am using redis and trying to open CLI of redis using this:
$redis-cli -h 127.0.0.1 -p 6379 -a mysupersecretpassword
and getting and error :
(error) NOAUTH Authentication required
why so ?
I am using redis and trying to open CLI of redis using this:
$redis-cli -h 127.0.0.1 -p 6379 -a mysupersecretpassword
and getting and error :
(error) NOAUTH Authentication required
why so ?
If you have a '$' in your password then it won't work. So set the password without the "$".
My solution is put the password in single quotes like:
$redis-cli -h 127.0.0.1 -p 6379 -a 'thisizmy!PASS'
If you have a '$' in your password then it won't work. So set the password without the "$".
If you have '$' in your password, make sure to enclose the password with single quotes. Then it will work.
Maybe this would usefull to someone. If you have already open the redis-cli console window, you can type the authentication like this:
auth 'your-password'
and then the console would response with OK
If you're using Redis Access Control List - ACL (Redis 6 and above), you log in with --user
and --pass
:
redis-cli -h 127.0.0.1 -p 6379 --user redis_user --pass 'redis_password'
or if you are already in redis-cli
console you can authenticate with:
auth redis_user 'redis_password'
© 2022 - 2024 — McMap. All rights reserved.