SSH key managment for multiple accounts

0

Hi, We need to achieve:

  1. Possibility to create/delete ssh key pairs for instances hosted in multiple accounts, in one place (centralization)
  2. Possibility to assign permissions for the user we are ssh'ing into inside the instance, for example : IAM - admin user, should have admin ssh key, which will give full read/write permissions in virtual machine in which user is ssh'ing, and the IAM - support user, should have support ssh key, which will give less permissions.

Any suggestions, in what we can look into, are welcome. As i googled a bit, the "AWS system manager" - "session manager" looks like it would work for us, but does it work for instances hosted in multiple accounts?

Joann

2 個答案
1
已接受的答案

Yes, this is possible using roles in the different accounts. Here is an example of how one organization set this up, Replacing SSH access to reduce management and security overhead with AWS Systems Manager.

profile pictureAWS
專家
kentrad
已回答 2 年前
1

Additionally, please note you can also use AWS Secrets Manager to securely store and rotate SSH key pairs

How to use AWS Secrets Manager to securely store and rotate SSH key pairs

profile pictureAWS
專家
已回答 2 年前

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

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

回答問題指南