article:ssh:lancer_un_deuxieme_service_ssh_sous_debian
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 | ||
| article:ssh:lancer_un_deuxieme_service_ssh_sous_debian [2026/03/06 13:34] – estro | article:ssh:lancer_un_deuxieme_service_ssh_sous_debian [2026/03/06 16:17] (Version actuelle) – estro | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ====== SSH :Lancer un deuxième service ssh sous Debian ====== | ====== SSH :Lancer un deuxième service ssh sous Debian ====== | ||
| </ | </ | ||
| - | {{page>/ | ||
| <WRAP # | <WRAP # | ||
| + | {{page>/ | ||
| <adm achievement 3 Opérations à effectuer> | <adm achievement 3 Opérations à effectuer> | ||
| * [[# | * [[# | ||
| * [[# | * [[# | ||
| - | * Lancer et vérifier ce nouveau service | + | * [[# |
| </ | </ | ||
| <WRAP # | <WRAP # | ||
| <adm quote Modèle nouvelle configuration ssh> | <adm quote Modèle nouvelle configuration ssh> | ||
| - | * Créer le dossier du nouveau service ssh <code bash> | + | * <color # |
| - | sudo mkdir /etc/ssh/ssh_2/ </ | + | sudo --shell bash |
| - | * Créer et adapter le modèle de fichier de configuration du nouveau service <code bash>echo >/ | + | |
| + | </ | ||
| + | * <color # | ||
| + | mkdir /etc/ssh/sshd_2/ </ | ||
| + | * Créer et adapter le modèle de fichier de configuration du nouveau service <code bash>cat >/ | ||
| ChallengeResponseAuthentication no | ChallengeResponseAuthentication no | ||
| + | Port 2230 | ||
| UsePAM no | UsePAM no | ||
| X11Forwarding yes | X11Forwarding yes | ||
| Ligne 25: | Ligne 30: | ||
| PubkeyAuthentication yes | PubkeyAuthentication yes | ||
| RSAAuthentication yes | RSAAuthentication yes | ||
| - | PermitRootLogin without-password | ||
| PermitEmptyPasswords no | PermitEmptyPasswords no | ||
| PasswordAuthentication no | PasswordAuthentication no | ||
| Ligne 32: | Ligne 36: | ||
| KeepAlive yes | KeepAlive yes | ||
| Protocol 2 | Protocol 2 | ||
| - | EOF </ | + | EOF |
| + | </ | ||
| </ | </ | ||
| <WRAP # | <WRAP # | ||
| Ligne 56: | Ligne 61: | ||
| </ | </ | ||
| <WRAP # | <WRAP # | ||
| + | <adm warning Lancer et vérifier ce nouveau service> | ||
| + | * Prise en compte du nouveau service <code bash> | ||
| + | sudo systemctl daemon-reload | ||
| + | sudo systemctl enable ssh-second | ||
| + | sudo systemctl start ssh-second | ||
| + | </ | ||
| + | * test des ports ouverts <code bash> | ||
| + | sudo ss -tlnp | ||
| + | </ | ||
| + | </ | ||
article/ssh/lancer_un_deuxieme_service_ssh_sous_debian.1772804073.txt.gz · Dernière modification : de estro
