Storage Gateway - CHAP - Authentication Failure to Target

0

EC2 Windows instance. Volume Storage Gateway. iSCSI connects fine without CHAP. (Image of successful connection provided.) Enter image description here

When trying CHAP, I keep getting 'Authentication Failure' to target. (Error image provided.)

On the target (SG), CHAP is set with the initiator ID from the EC2 instance plus the EC2's initiator secret, as well as a target secret.

On the initiator (EC2), the target name is listed under Targets and Target Portals.

Enter image description here Enter image description here Enter image description here

I did this last week successfully in a test run in another environment. It seems simple enough to enter iSCSI settings.

已提问 1 年前277 查看次数
2 回答
1
已接受的回答

Hello,

With the CHAP configuration set for the Volume on the Storage Gateway console, please try the following steps to successfully connect to your volume using CHAP Authentication from a Windows client -

  1. Open the iSCSI Initiator Properties

  2. Choose the 'Configuration' tab:

    a. Click on 'CHAP'.

    b. Enter the 'Target secret' you had configured on the Storage Gateway console here. This is the secret key that the initiator (the Windows client) uses to authenticate the target (the storage volume).

    c. Choose OK.

  3. Now, choose the 'Discovery' tab:

    a. Click on Discover Portal

    b. Enter the IP address of your Volume Gateway. Let the port be set to the default value: 3260.

    c. Click on OK.

  4. Move to the 'Targets' tab:

    a. You should now find your Volume listed as a target with the Status: Inactive

    b. Select the target you want to connect to, and click on Connect

  5. In the 'Connect To Target' dialog box that opens, select 'Advanced':

    a. The 'Advanced Settings' dialog box appears. Here, select the checkbox next to 'Enable CHAP log on'

    b. In the 'Target secret:' field, enter the 'Initiator secret' you specified for this initiator on the Storage Gateway console. This value is the secret key that the initiator (the Windows client) must know to participate in CHAP with the target.

    c. Select the checkbox next to 'Perform mutual authentication'

    d. Click OK

    e. Click on OK again in the 'Connect To Target' dialog box.

  6. With the right secret key values entered, the status of the target should now flip to 'Connected'.

For more information, please see - https://docs.aws.amazon.com/storagegateway/latest/vgw/initiator-connection-common.html#ConfiguringiSCSIClientInitiatorCHAP

I hope this helps!

已回答 1 年前
0

Hi Shwetha!

Thank you for spelling it out.

The clincher for me was 5b, " In the 'Target secret:' field, enter the 'Initiator secret'". Rather misleading of them!

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则