• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Problems adding 2FA inside EC2

yidakee

Well-known member
Foundation Member
SOLVED!! Thank you donho! full credits to him.

So another step to prevent hacking is to set up another layer of 2FA straight into Ubuntu.
http://www.howtogeek.com/121650/how...gle-authenticators-two-factor-authentication/
Did exactly as this tutorial says, worked great. But, final step is

sudo service ssh restart

And Google Auth really does ask for the token, which works. But THEN it asks for the password .. what password? The user password, that for EC2 masternoders should be "ubuntu". So lets create one

sudo passwd ubuntu
- press enter and will prompt to give user "ubuntu" a password, twice to confirm. You can issue the same command to change it.

I read a post from donho, you have to edit sshd_config; which also fixed an issue...

sudo nano /etc/ssh/sshd_config

and add this;

AuthenticationMethods publickey,keyboard-interactive

DO NOT ATTEMPT THIS without a few shells open so you dont accidentally lock yourself out!

To make edits into effect

sudo service ssh restart

to test, do

ssh localhost
 
Last edited by a moderator:
Back
Top