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,540 points
1,862 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,170 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
• 58,020 points
1,065 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
• 58,020 points
665 views
0 votes
0 answers

How do I get elements out of a AWS DynamoDB for a simple web app?

Feb 28, 2022 in AWS by Rahul
• 2,080 points
565 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,890 points
1,086 views
0 votes
3 answers

What is CPU Credit Balance in EC2 for AWS?

When you use fewer CPU resources then ...READ MORE

answered Nov 30, 2018 in AWS by Aniket
2,460 views
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,670 points
5,500 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
• 58,020 points
5,637 views
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,170 points
3,044 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,170 points
1,632 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP