Linux.com

Home Learn Linux Linux Answers Cloud Password protecting AMI instance

Favorite Favorite

Password protecting AMI instance

Author:
Kunal P.Bharati
Date added:
Thursday, 13 August 2009
Last revised:
never
Hits:
1203
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Question Detail


Hello All,

 I have a Fedora instance running at Amazon EC2. 

I log in into the instance using Keypair using following command:

 ssh -i key.pem root@instance.com

where key.pem is a keypair and instance.com is a running instance.

 

I am able to log in into the system without the issues. But I want system to prompt for a password too along with keypair.

How to do it?

Category

Tags for this Q & A

Answers  

 
-1 #1 Kunal P.Bharati 2009-08-21 20:36 Tried to figure out how it works. But I guess it doesnt work the way I wanted.
So we decided to go with password login.

I edited the sshd_config file and set the:
PasswordAuthent ication Yes

And disabled the root login..
 
Become an Individual Member

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Members / Staff / Board