---
title: "Comment by Siddarthan Sarumathi Pandian on \"Users and SSH setup on AWS EC2 - Best Practices\" | Hashnode"
description: "Totally waiting for another piece on IAM user role management. :D"
url: "https://hashnode.com/posts/users-and-ssh-setup-on-aws-ec2-best-practices/594e7399dab431e2eda595dd/comment/5955fedb6c7495b778015949"
---

[Discussion](https://hashnode.com/posts/users-and-ssh-setup-on-aws-ec2-best-practices/594e7399dab431e2eda595dd)

Comment [Users and SSH setup on AWS EC2 - Best Practices](https://hashnode.com/posts/users-and-ssh-setup-on-aws-ec2-best-practices/594e7399dab431e2eda595dd)

[Siddarthan Sarumathi Pandian](https://hashnode.com/@spsiddarthan)

[Jun 30, 2017](https://hashnode.com/posts/users-and-ssh-setup-on-aws-ec2-best-practices/594e7399dab431e2eda595dd/comment/5955fedb6c7495b778015949)

Totally waiting for another piece on IAM user role management. :D

[Sébastien Portebois](https://hashnode.com/@sportebois)

[Jul 2, 2017](https://hashnode.com/posts/users-and-ssh-setup-on-aws-ec2-best-practices/594e7399dab431e2eda595dd/comment/5955fedb6c7495b778015949#reply-59593a1223c1a21334cffccc)

In fact, you can already use IAM and let user manage their CodeCommit SSH key... but use that ssh-key for other purposes. I use that to make it easier : user manage their own ssh key, but the instances use iam groups to sync user with some users, and when a ssh connection needs to be established the key is read from IAM

The simple demos are available there: (for production use, you'd want to populate theses scripts from your cloudinit script, and restrict the user sync to only a specific group)

[github.com/sportebois/aws-ec2-ssh-sync](https://github.com/sportebois/aws-ec2-ssh-sync)

HTH

[Siddarthan Sarumathi Pandian](https://hashnode.com/@spsiddarthan)

[Jul 3, 2017](https://hashnode.com/posts/users-and-ssh-setup-on-aws-ec2-best-practices/594e7399dab431e2eda595dd/comment/5955fedb6c7495b778015949#reply-5959dc590b9aca6c0b3e23c4)

Thank you :D
