Score:-1

AWS-EC2 Ubuntu How to force root user UBUNTU to login using both Key and Password

gb flag

I am working on the instance of ubuntu with latest version

I want to setup a Root user ubuntu to login Forcefully using both key and password

So where i can do this configuration

I tried SSHD_CONFIG using PermitRootLogin & PasswordAuthentication Yes But didnt worked

Can please guide me someone. is this something needs to be done on the instance level

Score:0
us flag

You must set PubkeyAuthentication yes and PasswordAuthentication yes if you require both methods to log in.

Make sure to restart sshd after making configuration changes.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.