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:42] – estro | article:ssh:lancer_un_deuxieme_service_ssh_sous_debian [2026/03/06 16:17] (Version actuelle) – estro | ||
|---|---|---|---|
| Ligne 11: | Ligne 11: | ||
| <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 59: | Ligne 64: | ||
| * Prise en compte du nouveau service <code bash> | * Prise en compte du nouveau service <code bash> | ||
| sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
| - | sudo systemctl enable --now ssh-second | + | sudo systemctl enable |
| + | sudo systemctl start ssh-second | ||
| + | </ | ||
| + | * test des ports ouverts <code bash> | ||
| + | sudo ss -tlnp | ||
| + | </ | ||
| </ | </ | ||
article/ssh/lancer_un_deuxieme_service_ssh_sous_debian.1772804549.txt.gz · Dernière modification : de estro
