İki adımlı doğrulamayı kullanmak
İki adımlı doğrulama (2FA), Nextcloud hesabınıza izinsiz erişilmesini engellemenin bir yoludur. Kimliğinizin doğrulamak için iki farklı ‘kanıt’ ister. Örneğin, bildiğiniz bir şey (bir parola gibi) ve sahip olduğunuz bir fiziksel anahtar gibi. Genellikle, ilk adımda, zaten bildiğiniz bir parolayı yazarsınız. İkinci adım ise bir kısa mesaj kodu veya telefonunuzda veya başka bir aygıtta oluşturduğunuz bir kod (sahip olduğunuz bir şey) olabilir. Nextcloud çeşitli iki adımlı doğrulama yöntemlerini destekler ve daha fazlası da eklenebilir.
Once a two-factor authentication app has been enabled by your administrator, you can enable and configure it in Kullanıcı ayarları.
İki adımlı doğrulamayı yapılandırmak
In your personal settings, look up the Second-factor Auth setting. In this example this is TOTP, a Google Authenticator compatible time-based code:
Telefonunuzda (veya başka bir cihazda) tek kullanımlık parola uygulaması tarafından taranabilecek parolanızı ve bir QR kodunu göreceksiniz. Uygulamaya veya araca bağlı olarak, kodu yazın veya QR kodu tarayın. Aygıtınız her 30 saniyede bir değişen bir oturum açma kodu görüntüler.
Recovery codes if you lose your second factor
You should always generate backup codes for 2FA. If your second factor device gets stolen or stops working, you can use one of these codes to unlock your account. It effectively functions as a backup second factor. To get the backup codes, go to your personal settings and look under Second-factor Auth settings. Choose Generate backup codes:
You will then see a list of one-time-use backup codes:
Store these codes somewhere safe where you can find them. Do not keep them with your second factor (such as your mobile phone), but store them separately so that losing one does not mean losing the other.
İki adımlı doğrulama ile oturum açmak
After you log out and log in again, you will see a prompt to enter the TOTP code in your browser. If you have enabled more than one second factor, you will see a selection screen where you can choose which method to use for this login. Select TOTP:
Kodunuzu yazın:
Kod doğruysa Nextcloud hesabınıza yönlendirileceksiniz.
Not
Since the code is time-based, it is important that your server’s and your smartphone’s clock are almost in sync. A time drift of a few seconds won’t be a problem.
Donanım anahtarlarıyla iki adımlı doğrulamayı kullanmak
Donanım anahtarıyla iki adımlı doğrulamayı kullanabilirsiniz. Aşağıdaki aygıtların çalıştığı biliniyor:
Tek kullanımlık parola temelli:
FIDO2 temelli:
İstemci uygulamalarını iki adımlı doğrulama ile kullanmak
Once you have enabled 2FA, your clients will no longer be able to connect with just your password unless they also have support for two-factor authentication. To solve this, you should generate device-specific passwords for them. See Bağlı tarayıcı ve aygıtların yönetimi for more information on how to do this.
Düşünceler
If you use WebAuthn to log in to your Nextcloud, be sure to not use the same token for 2FA, as this would mean you are again only using a single factor.