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/09/12 11:17] – [SSH] remove -D since it is now in another section phsw | linux:ssh [2024/09/03 09:29] (Version actuelle) – [Créer un tunnel de port-forwarding] add link phsw |
|---|
| * [[https://github.com/opsdisk/the_cyber_plumbers_handbook|The Cyber Plumber's Handbook - The definitive guide to Secure Shell (SSH) tunneling, port redirection, and bending traffic like a boss]] | * [[https://github.com/opsdisk/the_cyber_plumbers_handbook|The Cyber Plumber's Handbook - The definitive guide to Secure Shell (SSH) tunneling, port redirection, and bending traffic like a boss]] |
| * [[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://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> |
| |
| |