{"id":50,"date":"2023-11-26T17:40:50","date_gmt":"2023-11-26T16:40:50","guid":{"rendered":"https:\/\/artheodoc.fr\/?page_id=50"},"modified":"2025-09-28T15:29:57","modified_gmt":"2025-09-28T13:29:57","slug":"changer-le-port-pour-ssh","status":"publish","type":"page","link":"https:\/\/artheodoc.fr\/index.php\/changer-le-port-pour-ssh\/","title":{"rendered":"Changer le port pour SSH"},"content":{"rendered":"\n<p>Sur les serveurs, on peut changer le port SSH utilis\u00e9. Par d\u00e9faut, c\u2019est la 22. Chaque serveur peut donc avoir son port SSH personnalis\u00e9.<\/p>\n\n\n\n<p>R\u00e9alis\u00e9 sous Debian 11, 12 et 13.<\/p>\n\n\n\n<p>En administrateur root (<strong>su<\/strong>)&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>nano \/etc\/ssh\/sshd_config<\/strong><\/pre>\n\n\n\n<p>D\u00e9commentez la ligne <strong>Port 22<\/strong> et remplacez par port de votre choix par exemple <em>2279<\/em><\/p>\n\n\n\n<p><strong>[CRTL]<\/strong> + <strong>[X]<\/strong> pour quitter l\u2019\u00e9diteur <strong>nano<\/strong>.<\/p>\n\n\n\n<p><strong>[O]<\/strong> pour confirmer l\u2019enregistrement des modifications.<\/p>\n\n\n\n<p><strong>[Entr\u00e9e]<\/strong> pour confirmer le nom du fichier.<\/p>\n\n\n\n<p>Pour red\u00e9marrer le service :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>service ssh restart<\/strong><\/pre>\n\n\n\n<p>Pour avoir des informations&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>service ssh status<\/strong><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sur les serveurs, on peut changer le port SSH utilis\u00e9. Par d\u00e9faut, c\u2019est la 22. Chaque serveur peut donc avoir son port SSH personnalis\u00e9. R\u00e9alis\u00e9 sous Debian 11, 12 et 13. En administrateur root (su)&nbsp;: nano \/etc\/ssh\/sshd_config D\u00e9commentez la ligne Port 22 et remplacez par port de votre choix par exemple 2279 [CRTL] + [X] [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-50","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/comments?post=50"}],"version-history":[{"count":3,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/50\/revisions"}],"predecessor-version":[{"id":2530,"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/pages\/50\/revisions\/2530"}],"wp:attachment":[{"href":"https:\/\/artheodoc.fr\/index.php\/wp-json\/wp\/v2\/media?parent=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}