7.12. 为目标设置 Challenge-Handshake 验证协议
通过使用 Challenge-Handshake Authentication Protocol(CHAP)
,用户可以使用密码保护目标。发起方必须了解这个密码才能连接到目标。
先决条件
- 创建 iSCSI ACL。如需更多信息,请参阅创建 iSCSI ACL。
步骤
设置属性身份验证:
/iscsi/iqn.20...mple:444/tpg1> set attribute authentication=1 Parameter authentication is now '1'.
设置
userid
和密码
:/tpg1> set auth userid=redhat Parameter userid is now 'redhat'. /iscsi/iqn.20...689dcbb3/tpg1> set auth password=redhat_passwd Parameter password is now 'redhat_passwd'.
其他资源
-
您系统上的
targetcli (8)
手册页