Outils pour utilisateurs

Outils du site


linux:ssh_gauth

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
linux:ssh_gauth [2016/07/11 14:17] gdureuillinux:ssh_gauth [2020/07/24 22:03] (Version actuelle) – modification externe 127.0.0.1
Ligne 9: Ligne 9:
 ===== Installation ===== ===== Installation =====
  
-Installer les packages pour compiler les outils nécessaires+Installer les packages.
  
 <sxh bash;> <sxh bash;>
-apt install build-essential make automake m4 autotools-dev libtool libpam0g-dev libpam0g unzip qrencode +apt install libpam-google-authenticator qrencode
-</sxh> +
- +
-(Ici unzip sert à décompresser l'archive, qrencode sert à générer le QR pour configurer l'application mobile plus facilement. Le reste sert à la compilation.) +
- +
-Télécharger et décompresser les sources de libpam authenticator sur Github (voir lien "Source 3" en bas de page) +
- +
-<sxh bash;> +
-cd /usr/local/src +
-wget https://github.com/google/google-authenticator/archive/master.zip -O googleauth.zip +
-unzip googleauth.zip && rm googleauth.zip +
-cd google-authenticator-master/libpam +
-</sxh> +
- +
-Penser à adapter l'URL pour la dernière version et donc le nom du dossier qui est extrait +
- +
-Lancer la compilation +
- +
-<sxh bash;> +
-./bootstrap.sh +
-./configure +
-make +
-make install+
 </sxh> </sxh>
  
Ligne 98: Ligne 76:
  
 <sxh text; Title: /etc/pam.d/sshd> <sxh text; Title: /etc/pam.d/sshd>
-auth required /usr/local/lib/security/pam_google_authenticator.so nullok+auth required pam_google_authenticator.so nullok
 </sxh> </sxh>
  
Ligne 142: Ligne 120:
 ===== Sources ===== ===== Sources =====
  
-[[http://pirmax.fr/2014/02/13/securiser-les-connexions-ssh-avec-google-authenticator/|Source 1]] - [[http://www.linux.org/threads/google-authenticator-for-ssh.4590/|Source 2]] - [[https://github.com/google/google-authenticator|Source 3]]+[[https://github.com/google/google-authenticator|github.com/google/google-authenticator]] - [[https://korben.info/activer-lauthentification-2-etapes-serveur-ssh.html|korben.info]] - [[https://www.rosehosting.com/blog/secure-your-ssh-using-two-factor-authentication-on-ubuntu-16-04/|rosehosting.com]]
linux/ssh_gauth.1468246669.txt.gz · Dernière modification : 2020/07/24 22:03 (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki