Here is a great very quick Ubuntu two factor authentication setup guide, which I'ved tested to work for Ubuntu 12.04 and 14.04. It sets up two factor authentication for SSH login. You can still login via public key instead, which may be even safer. But it's a good way to prevent bad effects from someone just stealing your password.