41

I get the error:

(error) NOAUTH Authentication required.

When in redis-cli and trying to display the KEYS *. I've only set a requirepass not an auth afaiac. I'm in the redis.conf but do not know what to do.

30

Setting the requirepass configuration directive causes the server to require password authentication with the AUTH command before sending other commands. The redis.conf file states that clearly:

Require clients to issue AUTH before processing any other
commands. This might be useful in environments in which you do not trust
others with access to the host running redis-server.

| improve this answer | |
  • 6
    so, what are the exact steps to fix the problem? – Serge May 20 '19 at 8:52
  • @Serge Uh... you comment the requirepass part in the redis.conf file? – Karl Morrison Jun 2 at 7:01
38
1. redis-cli
2. auth yourpassword
3. shutdown
4. sudo service redis_6379 start
| improve this answer | |
  • 4
    Simple, concise, and to the point! – Edd Mar 5 '19 at 20:55
6
  1. Make sure you have redis-cli installed.
  2. Just use following command.

    redis-cli -h host.domain.com -p port -a yourpassword

| improve this answer | |
3

first run

redis-cli

then after the prompt run

127.0.0.1:6379> AUTH your_password

if all ok you get the OK

| improve this answer | |
2

comment requirepass (line 480 mostly) in redis.conf file if uncommented.

| improve this answer | |
  • Usually have a password for security, probably best to provide a solution than enables the ability to put in the password – Alex Stewart Apr 23 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.