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/06/22 22:08] gdureuillinux:ssh_gauth [2020/07/24 22:03] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 ====== Sécuriser les connexions SSH avec Google Authenticator ====== ====== Sécuriser les connexions SSH avec Google Authenticator ======
  
-<WRAP center round info 100%>+===== Information ===== 
 + 
 +<WRAP center info 100%>
 Testé sur Debian 8. Testé sur Debian 8.
 </WRAP> </WRAP>
- 
  
 ===== Installation ===== ===== Installation =====
  
-Installer les packages pour compiler les outils nécessaires +Installer les packages.
- +
-<sxh bash;> +
-apt install build-essential make automake m4 autotools-dev libtool libpam0g-dev libpam0g unzip qrencode +
-</sxh> +
- +
-(Ici unzip sert à décompresser l'archive, qrencode sert à générer le QR pour configurer l'application mobile plus facilementLe 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;> <sxh bash;>
-./bootstrap.sh +apt install libpam-google-authenticator qrencode
-./configure +
-make +
-make install+
 </sxh> </sxh>
  
Ligne 97: 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 139: Ligne 118:
 </sxh> </sxh>
  
-[[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]]+===== Sources ===== 
 + 
 +[[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.1466633298.txt.gz · Dernière modification : 2020/07/24 22:03 (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki