Linux.com

Home Free Linux Support 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:
823
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 This e-mail address is being protected from spambots. You need JavaScript enabled to view it

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 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 a Linux Foundation 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