Unable to connect to the AVE when deploying Avamar with Metadata v2 (IMDSV2) only in AWS

摘要: When Avamar is deployed with only the IMDSV2 option (and not with IMDSV1), connection to the Avamar server by SSH fails.

本文章適用於 本文章不適用於 本文無關於任何特定產品。 本文未識別所有產品版本。

症狀

The Avamar deployment completes successfully, however the SSH connection reports the following: "No Supported authentication methods available (server sent: publickey). Server refused our key".

Unsuccessful connection

 
 

原因

IMDSv2 uses session-oriented requests. This does not work "out of the box" with Avamar.

解析度

1. Deploy the Avamar instance using both Metadata v1 and v2 enabled.
2. Launch the AWS CLI and run the following command, substituting the instance-id with the instance id of the newly deployed Avamar server.

aws ec2 describe-instances --instance-ids <instance-id>
 
The instance definition should contain the "HttpTokens" setting set to "optional". Example:

 

Metadata config options


3. Run the following command to enable the HttpTokens and convert the instance to IMDSv2. Again, substitute the instance-id with the instance id of the Avamar server.

aws ec2 modify-instance-metadata-options --instance-id <instanced-id> --http-tokens required --http-endpoint enabled --http-put-response-hop-limit 1

The following parameter can be adjusted, depending on specific needs:

http-put-reponse-hop-limit: "The desired HTTP PUT response hop limit for instance metadata requests."

4. Verify that the parameters have been accepted by repeating the command from step 2. Sample output:
 

image.png


5. Test the SSH connection and verify that IMDSv2 is now enabled. Run the following curl command to confirm:
 

curl http://169.254.169.254/latest/meta
Note the "Unauthorized" tile and header. They indicate that the IMDSv2 is enabled and the token is required. There would not be any unauthorized errors if the instance metadata service was in version 1. Sample output:

Curl command

References: 
https://aws.amazon.com/cli/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html

受影響的產品

Avamar Server, Avamar Virtual Edition
文章屬性
文章編號: 000206930
文章類型: Solution
上次修改時間: 01 8月 2025
版本:  3
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。