index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="shortcut icon" href="../img/favicon.ico">
  9. <title>Première connexion - Les Tutoriels du Yojik</title>
  10. <link rel="stylesheet" href="../css/theme.css" />
  11. <link rel="stylesheet" href="../css/theme_extra.css" />
  12. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" />
  13. <script>
  14. // Current page data
  15. var mkdocs_page_name = "Premi\u00e8re connexion";
  16. var mkdocs_page_input_path = "Premi\u00e8re-connexion.md";
  17. var mkdocs_page_url = null;
  18. </script>
  19. <script src="../js/jquery-2.1.1.min.js" defer></script>
  20. <script src="../js/modernizr-2.8.3.min.js" defer></script>
  21. <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
  22. <script>hljs.initHighlightingOnLoad();</script>
  23. </head>
  24. <body class="wy-body-for-nav" role="document">
  25. <div class="wy-grid-for-nav">
  26. <nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
  27. <div class="wy-side-scroll">
  28. <div class="wy-side-nav-search">
  29. <a href=".." class="icon icon-home"> Les Tutoriels du Yojik</a>
  30. <div role="search">
  31. <form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
  32. <input type="text" name="q" placeholder="Search docs" title="Type search term here" />
  33. </form>
  34. </div>
  35. </div>
  36. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  37. <p class="caption"><span class="caption-text">Installation d'un VPS</span></p>
  38. <ul class="current">
  39. <li class="toctree-l1"><a class="reference internal" href="..">Résumé</a>
  40. </li>
  41. <li class="toctree-l1"><a class="reference internal" href="../Pr%C3%A9sentation/">Présentation</a>
  42. </li>
  43. <li class="toctree-l1"><a class="reference internal" href="../Commande-vps/">Commande du VPS</a>
  44. </li>
  45. <li class="toctree-l1 current"><a class="reference internal current" href="./">Première connexion</a>
  46. <ul class="current">
  47. </ul>
  48. </li>
  49. <li class="toctree-l1"><a class="reference internal" href="../Programmes-de-base/">Installation des programmes de base</a>
  50. </li>
  51. <li class="toctree-l1"><a class="reference internal" href="../Premi%C3%A8re-configuration/">Première configuration</a>
  52. </li>
  53. <li class="toctree-l1"><a class="reference internal" href="../S%C3%A9curisation-ssh/">Sécurisation ssh</a>
  54. </li>
  55. </ul>
  56. </div>
  57. </div>
  58. </nav>
  59. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  60. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  61. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  62. <a href="..">Les Tutoriels du Yojik</a>
  63. </nav>
  64. <div class="wy-nav-content">
  65. <div class="rst-content">
  66. <div role="navigation" aria-label="breadcrumbs navigation">
  67. <ul class="wy-breadcrumbs">
  68. <li><a href="..">Docs</a> &raquo;</li>
  69. <li>Installation d'un VPS &raquo;</li>
  70. <li>Première connexion</li>
  71. <li class="wy-breadcrumbs-aside">
  72. </li>
  73. </ul>
  74. <hr/>
  75. </div>
  76. <div role="main">
  77. <div class="section">
  78. <h1 id="premiere-connexion">Première connexion</h1>
  79. <p>Veuillez vous reporter au tutoriel «Installation d'un serveur Raspi sécurisé» pour la création de votre clef, ainsi que la configuration du poste de travail.</p>
  80. <p>Une fois les opérations effectuées, vous pourrez vous connecter ainsi :</p>
  81. <pre><code>eric@aldebaran:~$ ssh ns1
  82. The authenticity of host 'ns1.yojik.eu (51.210.247.149)' can't be established.
  83. ECDSA key fingerprint is SHA256:WlxCIvGD41/N+ef9u5R4bL6+L3Kywar8EW32bH/ck5w.
  84. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
  85. Warning: Permanently added 'ns1.yojik.eu,51.210.247.149' (ECDSA) to the list of known hosts.
  86. Linux vps-0c47118c 4.19.0-12-cloud-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64
  87. The programs included with the Debian GNU/Linux system are free software;
  88. the exact distribution terms for each program are described in the
  89. individual files in /usr/share/doc/*/copyright.
  90. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  91. permitted by applicable law.
  92. Last login: Sat Jan 2 09:03:38 2021 from 82.65.37.204
  93. debian@vps-0c47118c:~$
  94. </code></pre>
  95. <p>Nous voilà connectés.</p>
  96. <p>Nous voyons que le hostname est celui donné par défaut par OVH : nous le changerons.</p>
  97. <p>Il faudra aussi procéder à la sécurisation du serveur <strong>SSH</strong>.</p>
  98. <p>Nous allons installer quelques logiciels indispensables (pour moi) :</p>
  99. <ul>
  100. <li>mc - navigateur de fichier en mode texte</li>
  101. <li>vim - éditeur de texte</li>
  102. </ul>
  103. <p>Ensuite, nous allons procéder à la configuration de notre hostname, du réseau (IPV6), à l'installation du résolveur DNS (knot-resolver), d'un pare-feux (firewalld), d'un programme nous protégant des attaques de force brute (fail2ban), d'un programme de surveillance de notre serveur et d'un serveur de temps.</p>
  104. <p>Une fois tout cela fait et testé, nous pourrons procéder à l'installation et à la configuration d'un serveur <strong>DNS</strong>, <strong>knot</strong> dans mon cas. J'installais toujours <strong>bind</strong>, mais j'ai décidé de changer, pour éviter la monotonie et apprendre des choses nouvelles.</p>
  105. <p>Les première étapes ont toutes été décrites dans mes précédents tutoriels. Je vais simplement reprendre les explications adaptées au cas particulier du vps.</p>
  106. </div>
  107. </div>
  108. <footer>
  109. <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
  110. <a href="../Programmes-de-base/" class="btn btn-neutral float-right" title="Installation des programmes de base">Next <span class="icon icon-circle-arrow-right"></span></a>
  111. <a href="../Commande-vps/" class="btn btn-neutral" title="Commande du VPS"><span class="icon icon-circle-arrow-left"></span> Previous</a>
  112. </div>
  113. <hr/>
  114. <div role="contentinfo">
  115. <!-- Copyright etc -->
  116. </div>
  117. Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
  118. </footer>
  119. </div>
  120. </div>
  121. </section>
  122. </div>
  123. <div class="rst-versions" role="note" aria-label="versions">
  124. <span class="rst-current-version" data-toggle="rst-current-version">
  125. <span><a href="../Commande-vps/" style="color: #fcfcfc;">&laquo; Previous</a></span>
  126. <span style="margin-left: 15px"><a href="../Programmes-de-base/" style="color: #fcfcfc">Next &raquo;</a></span>
  127. </span>
  128. </div>
  129. <script>var base_url = '..';</script>
  130. <script src="../js/theme.js" defer></script>
  131. <script src="../search/main.js" defer></script>
  132. <script defer>
  133. window.onload = function () {
  134. SphinxRtdTheme.Navigation.enable(true);
  135. };
  136. </script>
  137. </body>
  138. </html>