I have set up google two factor authentication on my local machine. So when I do :
ssh localhost
I need to verify the code along with password. But when I try to connect to my Ec2 instance like so :
ssh -i mykey.pem ubuntu@x.x.x.x.x
It just asks for the password (here is no second factor). How could I provide the password along with the verify code that I see in my google app.
Thanks in advance.