Closed AdamKhanIT closed 7 years ago
You're failing on the pubkey step, not the TOTP step. Either your authorized_keys file on the server is missing your pubkey, or you're not using the right private key locally.
Agreed. I hope you still have a way in to the server. Step 3 in the howto you linked to does mention logging in with only the pubkey. Did you do that successfully before doing the rest of the changes in step 3?
When changing login stuff like PAM and ssh, always have a second terminal logged in and verify that new logins succeed before logging out any existing logins.
Thank you guys..Yeah made a mistake not having a second terminal logged in. Lesson learned I was able to get in using the console and reverted the changed back to original state.
Good. Just try again and be more careful. :-)
Closing this issue.
Hi I followed the steps from article below and now I am not able to log into my VM. I am getting Permission denied (publickey), I am using Secure Shell to log in. I am not even getting prompted to enter google authentication bar code which i scanned from my phone when I was setting it up. I have my secret key, verification code and the emergency scratch codes. Please help!
https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-ubuntu-14-04
Below is the message I am getting. Permission denied (publickey). NaCl plugin exited with status code 255. (R)econnect, (C)hoose another connection, or E(x)it?
Below is the full output with ssh -v MYIP