summaryrefslogtreecommitdiff
path: root/src/SW/yubikey-auth/document.it.rest.txt
blob: af1e083532cbf264250f3cfff808c1d8b7193e2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
============================================================
Come usare una Yubikey per autenticarsi in un sistema Gentoo
============================================================
:CreationDate: 2015-11-29 13:30:11
:Id: SW/yubikey-auth
:tags: - software
       - configs
 
Versione molto rapida:
 
* aggiungete `la mia overlay`_
 
* abilitate i pacchetti che servono, ad esempio scrivendo queste righe
  in ``/etc/portage/package.accept_keywords/yubikey``::
 
    app-crypt/libu2f-host
    app-crypt/libu2f-server
    sys-auth/pam_u2f
 
* installate |pam_u2f|_
 
* aggiungete questa riga all'inizio di ``/etc/pam.d/system-login``::
 
    auth  required  pam_u2f.so
 
* eseguite::
 
    mkdir -p ~/config/Yubico
    pamu2fcfg -uusername -opam://$(hostname) -ipam://$(hostname) \
      >> ~/config/Yubico/u2f_keys
 
* Fatto. Leggete la documentazione di |pam_u2f|_ per i dettagli.
 
.. note::
 
   Dichiarando che |pam_u2f| è "``required``", stiamo dicendo che la
   Yubikey è necessaria *in aggiunta alla password*. Se volete usare
   la Yubikey da sola, scrivete invece ``sufficient``.
  
.. _`la mia overlay`: https://www.thenautilus.net/cgit/gentoo-overlay/
.. _`pam_u2f`: https://developers.yubico.com/pam-u2f/
.. |pam_u2f| replace:: ``pam_u2f``