Application Migration Service With Key Pair

0

Hi All,

I used Application Migration Service to migrate one of our On-Premise VM machines to AWS Ec2, and I choose one of our existing key pairs on the template migration server. After the Migration was completed successfully, I couldn't log in to the new AWS server through the Key pair but I can log in through username and password that the on-premise server setup with. Is there a way to set up the key pair with the new server?

1 個回答
0

Application Migration Service MGN replicates the entire disk contents from onprem and even though you are asked to configure a launch template certain settings within the launch template have no effect. Keypair is one of them - See here for more details

Adding the keypair is possible only via a post launch script or via ssm agent. Your script would need to insert the public key into the ~/.ssh folder for the required user

AWS
專家
Peter_G
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南