AWS Simple AD : SSH based authentication for Linux insatnces

0 votes

I currently have openldap setup where i upload new user's keys to LDAP and i am able to login to AWS EC2 Linux instances using these keys.

But i am planning to migrate to AWS Simple AD. But i want to if AWS Simple AD offer feature of uploading SSH keys for new users ?

And if allows authenticating to Linux servers using this uploaded SSH keys?

Aug 3, 2018 in AWS by datageek
• 2,440 points
157 views

1 answer to this question.

0 votes

You can interact with Simple AD in the same way you do with any other LDAP ( Lightweight Directory Access Protocol) server. You need to be within the VPC but the following code works.

Example

/tmp/username.ldif

dn: CN=Test User,CN=Users,DC=ad,DC=example,DC=org changeType: modify add: objectClass objectClass: ldapPublicKey dn: CN=Test User,CN=Users,DC=ad,DC=example,DC=org changeType: modify add: sshPublicKey sshPublicKey: ssh-rsa ....

ldbmodify --verbose --url "ldap://ad.example.org" --user "SIMPLEAD_USERNAME" --password 'SIMPLE_AD_PASSWORD' /tmp/username.ldif

For further details you can click on the below link.

https://github.com/localytics/chef-sssd/blob/master/GETTING_STARTED.md

answered Aug 3, 2018 by Archana
• 4,090 points

Related Questions In AWS

0 votes
1 answer

AWS Simple AD : SSH based key Authentication for Linux instances

You can interact with SimpleAD in the ...READ MORE

answered Aug 29, 2018 in AWS by Priyaj
• 56,520 points
65 views
0 votes
1 answer

Amazon AWS - simple email service for Sydney region

SES is just an authenticated endpoint on ...READ MORE

answered Jul 20, 2018 in AWS by Priyaj
• 56,520 points
59 views
+3 votes
1 answer

aws cloudformation for atomic stack-update

When you perform a stack update, only ...READ MORE

answered Mar 27, 2018 in AWS by DareDev
• 6,810 points
68 views
0 votes
3 answers
0 votes
2 answers
0 votes
1 answer

Want to use an AWS Cognito User Pool without putting a password(for an easier approach)

Currently, AWS Cognito is not supporting passwordless ...READ MORE

answered May 4, 2018 in AWS by Cloud gunner
• 4,260 points
1,382 views
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 56,520 points
1,275 views
0 votes
1 answer
0 votes
1 answer

How do I enable SSH for my AWS-EB instance?

Using the EB CLI to do eb ...READ MORE

answered Oct 9, 2018 in AWS by Archana
• 4,090 points
45 views
0 votes
1 answer

How to set up a SPF(Sender Policy Framework) for AWS EC2 instance?

Setting up a SPF record is pretty ...READ MORE

answered Aug 16, 2018 in AWS by Archana
• 4,090 points
190 views