Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

The default way to access an new EC2 instance is by using your key-pair.

How can I allow other users to connect to my instance, without giving them my keys? (Ideally, I'd like them to be prompted for user/password on login)

closed

1 Answer

+1 vote
by (18.2k points)
selected by
 
Best answer

Try the following steps:

Step 1: Edit /etc/ssh/sshd_config and set passwordAuthentication to yes.

Step 2: Run the following command:

sudo /etc/init.d/sshd reload

Step 3: Create a user:

useradd USERNAME

Step 4:Set a password:

passwd USERNAME

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer

Browse Categories

...