linux:ssh_gauth
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
linux:ssh_gauth [2016/06/24 18:03] – modification externe 127.0.0.1 | linux: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 | + | ===== Information ===== |
+ | |||
+ | <WRAP center info 100%> | ||
Testé sur Debian 8. | Testé sur Debian 8. | ||
</ | </ | ||
- | |||
===== Installation ===== | ===== Installation ===== | ||
- | Installer les packages | + | Installer les packages. |
- | + | ||
- | <sxh bash;> | + | |
- | apt install build-essential make automake m4 autotools-dev libtool libpam0g-dev libpam0g unzip qrencode | + | |
- | </ | + | |
- | + | ||
- | (Ici unzip sert à décompresser l' | + | |
- | + | ||
- | Télécharger et décompresser les sources de libpam authenticator sur Github (voir lien " | + | |
- | + | ||
- | <sxh bash;> | + | |
- | cd / | + | |
- | wget https:// | + | |
- | unzip googleauth.zip && rm googleauth.zip | + | |
- | cd google-authenticator-master/ | + | |
- | </ | + | |
- | + | ||
- | 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;> | ||
- | ./ | + | apt install |
- | ./ | + | |
- | make | + | |
- | make install | + | |
</ | </ | ||
Ligne 97: | Ligne 76: | ||
<sxh text; Title: / | <sxh text; Title: / | ||
- | auth required | + | auth required pam_google_authenticator.so nullok |
</ | </ | ||
Ligne 139: | Ligne 118: | ||
</ | </ | ||
- | [[http://pirmax.fr/2014/02/13/securiser-les-connexions-ssh-avec-google-authenticator/|Source 1]] - [[http://www.linux.org/threads/ | + | ===== Sources ===== |
+ | |||
+ | [[https://github.com/google/google-authenticator|github.com/google/ |
linux/ssh_gauth.1466791398.txt.gz · Dernière modification : 2020/07/24 22:03 (modification externe)