Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| linux:ssh [2023/12/15 15:13] – [SSH] add link to website about hardening SSH configuration phsw | linux:ssh [2026/04/16 21:59] (Version actuelle) – [SSH] add link phsw |
|---|
| * [[https://grahamhelton.com/blog/ssh-cheatsheet/|An Excruciatingly Detailed Guide To SSH (But Only The Things I Actually Find Useful)]] | * [[https://grahamhelton.com/blog/ssh-cheatsheet/|An Excruciatingly Detailed Guide To SSH (But Only The Things I Actually Find Useful)]] |
| * [[https://blog.stephane-robert.info/docs/securiser/durcissement/ssh/|Durcir la configuration SSH]] | * [[https://blog.stephane-robert.info/docs/securiser/durcissement/ssh/|Durcir la configuration SSH]] |
| | * [[https://jpmens.net/2026/04/03/ssh-certificates-the-better-ssh-experience/|SSH certificates: the better SSH experience]] |
| |
| |
| * [[https://goteleport.com/blog/ssh-tunneling-explained/]] | * [[https://goteleport.com/blog/ssh-tunneling-explained/]] |
| * [[https://iximiuz.com/en/posts/ssh-tunnels/|A Visual Guide to SSH Tunnels (with labs)]] | * [[https://iximiuz.com/en/posts/ssh-tunnels/|A Visual Guide to SSH Tunnels (with labs)]] |
| | * [[https://blog.stephane-robert.info/docs/services/reseau/ssh-tunneling/|Maitrisez le tunneling SSH]] |
| |
| |
| <code bash> | <code bash> |
| mkdir -p /run/sshd | mkdir -p /run/sshd |
| | </code> |
| | |
| | |
| | ==== Changer le port d'écoute ==== |
| | |
| | Changer dans le fichier ''/etc/ssh/sshd_config''. Si SystemD est utilisé, il faut aussi modifier le service qui définit la socket ([[https://askubuntu.com/questions/925452/ssh-resets-to-default-port-on-reboot|source]]) : |
| | <code bash> |
| | systemctl edit ssh.socket |
| | </code> |
| | Puis y mettre : |
| | <code> |
| | [Socket] |
| | ListenStream= |
| | ListenStream=3233 |
| </code> | </code> |
| |
| |