informatique:reseau:ssh
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| informatique:reseau:ssh [21/06/2026 07:35] – [Maintien de la connexion] cyrille | informatique:reseau:ssh [21/06/2026 08:01] (Version actuelle) – [Configuration] cyrille | ||
|---|---|---|---|
| Ligne 32: | Ligne 32: | ||
| </ | </ | ||
| + | Une configuration solide: | ||
| + | |||
| + | < | ||
| + | # / | ||
| + | |||
| + | #Port non standard: réduit le bruit malveillants | ||
| + | |||
| + | MaxAuthTries 3 | ||
| + | LoginGraceTime 5 | ||
| + | PermitRootLogin no | ||
| + | PasswordAuthentication no | ||
| + | PermitEmptyPasswords no | ||
| + | KbdInteractiveAuthentication no | ||
| + | # | ||
| + | HostbasedAuthentication no | ||
| + | KerberosAuthentication no | ||
| + | GSSAPIAuthentication no | ||
| + | PubkeyAuthentication yes | ||
| + | AuthorizedKeysFile .ssh/ | ||
| + | StrictModes yes | ||
| + | Compression no | ||
| + | AllowTcpForwarding no | ||
| + | X11Forwarding no | ||
| + | AllowAgentForwarding no | ||
| + | AllowStreamLocalForwarding no | ||
| + | IgnoreRhosts yes | ||
| + | |||
| + | #UsePAM yes ??? | ||
| + | # - ^=^s Check which modules are active | ||
| + | |||
| + | HostKeyAlgorithms ssh-ed25519, | ||
| + | PubkeyAcceptedKeyTypes ssh-ed25519, | ||
| + | MACs hmac-sha2-512-etm@openssh.com, | ||
| + | |||
| + | # remove LC_* to avoid some " | ||
| + | AcceptEnv LANG | ||
| + | |||
| + | ClientAliveInterval 20 | ||
| + | ClientAliveCountMax 2 | ||
| + | TCPKeepAlive yes | ||
| + | |||
| + | </ | ||
informatique/reseau/ssh.txt · Dernière modification : de cyrille
