Redis是否使用用户名进行身份验证? [英] Does Redis use a username for authentication?

查看:90
本文介绍了Redis是否使用用户名进行身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的环境中设置了Redis,并且仅看到用于通过密码进行授权的部分.是否也可以设置用户名?还是仅通过密码进行身份验证?

I have set up Redis in my environment, and have only seen a section for authorizing via a password. Is there a way to set up a username too? Or is it only authenticated via password?

推荐答案

只能通过密码对Redis进行身份验证.

Redis can only be authenticated via password.

请记住,密码(像其他所有密码一样)是未经加密的通过网络发送的,因此任何可以监听网络流量的人都非常容易进行窃听,因此使用密码不足以保护暴露的Redis在网络上:

Keep in mind that the password (like everything else) is sent over the network unencrypted so it is very easy to eavesdrop by anyone who can listen to the network traffic, so using a password is not enough to protect Redis that is exposed on the network:

认证层的目标是可选地提供冗余层.如果防火墙或为保护Redis免受外部攻击者而实施的任何其他系统失败,则外部客户端在不知道身份验证密码的情况下仍将无法访问Redis实例.

The goal of the authentication layer is to optionally provide a layer of redundancy. If firewalling or any other system implemented to protect Redis from external attackers fail, an external client will still not be able to access the Redis instance without knowledge of the authentication password.

要通过网络安全地使用Redis,可以使用网络级隧道或SSL/TLS,请参阅:

To safely use Redis over the network, you'd either use a network level tunnel or SSL/TLS, see:

这篇关于Redis是否使用用户名进行身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆