Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed ASL and it recommends me that I implement a two way SSH authentication. I have some questions about it.

I understand the general idea that you need to login with both a key and a password.

I am working from a laptop, what will happen if my laptop get's stolen. Will I never be able to login again??

share|improve this question
up vote 3 down vote accepted

Two-factor authentication works by allowing access based on two authentication methods. From a remote system point of view, SSH key files are really only one factor, because the remote system cannot know for certain that a password was used to decrypt the private SSH keyfile.

I recommend you keep a copy of your encrypted private SSH keyfile somewhere safe, like on an SD card at a friends house - on in a bank vault. If you lose your private SSH key, you will need to contact the administrator of the system and supply him with a new public SSH key based on your new private SSH key.

Account recovery of this sort often becomes the biggest security hole. How does the administrator know that you're you, if you don't have you original private SSH key? He would need to know your voice or face or have some other means of verifying your identity.

share|improve this answer

A quick google search yielded this article:

Hopefully, it describes it better. It also gives a tutorial on setting up two-factor auth with SSH.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.