ssh-hostkey.html
1 <!DOCTYPE html> 2 <html lang="de"> 3 <head> 4 <meta charset="UTF-8" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 <meta http-equiv="onion-location" content="http://bopbopl6lohkl2rts3ltesjnag4hzs4jrx2h6k6etgq5xasbpqekzlqd.onion" /> 7 <title>BOP Wiki: SSH Hostkey Issue</title> 8 <link rel="stylesheet" href="/assets/stylesheet.css" /> 9 <link rel="icon" type="image/x-icon" href="/assets/img/favicon.png"> 10 </head> 11 <body> 12 <header> 13 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 14 <script src="/assets/js/navbar-OpenClose.js"></script> 15 <script src="/assets/js/lightbox.js"></script> 16 <script src="/assets/js/copyCodeButton.js"></script> 17 <link rel="stylesheet" href="/resources/js-libraries/highlightJS/atom-one-dark.min.css"> 18 <script src="/resources/js-libraries/highlightJS/highlight.min.js"></script> 19 <script src="/resources/js-libraries/highlightJS/highlightjs-line-numbers.min.js"></script> 20 <script>hljs.highlightAll();</script> 21 <script>hljs.initLineNumbersOnLoad();</script> 22 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 23 <div class="branding"> 24 <button class="toggle-btn-navbar" id="navbarOpenButton">☰</button> 25 <a href="/"> 26 <img class="logo" src="/assets/img/logo.png"> 27 </a> 28 <div class="typing-animation">BytesOfProgress</div> 29 </div> 30 </header> 31 <div id="navbarContainer" class="navbar-container"> 32 <iframe class="navbar-iframe" src="/assets/navbar/navbar.html" frameBorder= "0"></iframe> 33 </div> 34 <main> 35 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 36 <article class="site-post"> 37 <header class="post-header"> 38 <h1 class="post-title">SSH Hostkey Issue</h1> 39 <div class="post-meta"> 40 </div> 41 </header> 42 </article> 43 <nav class="breadcrumb"> 44 <a href="/">Home</a> 45 <span class="divider">›</span> 46 <a href="/wiki/">Wiki</a> 47 <span class="divider">›</span> 48 <a href="/wiki/linux/A1linux.html">GNU / Linux</a> 49 <span class="divider">›</span> 50 <a href="/wiki/linux/HowDoI/A1HowDoI.html">HowDoI</a> 51 <span class="divider">›</span> 52 <span class="current">SSH Hostkey Issue</span> 53 </nav> 54 <section class="post-content"> 55 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 56 <p> 57 Why do it get this error message / warning when I try to 58 establish a connection via SSH? 59 </p> 60 <p> 61 What is it? How can I get rid of it? 62 </p> 63 <div class="code-box"> 64 <pre><code>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 65 @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 66 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 67 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! 68 Someone could be eavesdropping on you right now (man-in-the-middle attack)! 69 It is also possible that a host key has just been changed. 70 The fingerprint for the ED25519 key sent by the remote host is 71 SHA256: 72 Please contact your system administrator. 73 Add correct host key in /home/user/.ssh/known_hosts to get rid of this message. 74 Offending ED25519 key in /home/user/.ssh/known_hosts:67 75 Host key for IP has changed and you have requested strict checking. 76 Host key verification failed.</code></pre> 77 </div> 78 <br> 79 <p> 80 This happens when the key of the system you want to 81 connect to, is not the same as the one your computer has stored 82 along with the IP-Address. Or in short: 83 </p> 84 <p> 85 Same IP-Address, different device. 86 </p> 87 <p> 88 Please only ignore this warning if you are 100% sure, that 89 the device you want to connect to is the right one. 90 </p> 91 <p> 92 We can use following command to replace the the old 93 key with the new one: 94 </p> 95 96 <blockquote> 97 $ ssh-keygen -R IP-ADDRESS 98 </blockquote> 99 <p> 100 After that, you should be able to connect to the device 101 without problems. 102 </p> 103 <!-- --------------------------------------------------------------------------------------------------------------------------------- --> 104 </section> 105 <footer class="post-footer"> 106 <a href="/wiki/linux/HowDoI/A1HowDoI.html" class="cta-button">← Back</a> 107 </footer> 108 </main> 109 </body> 110 </html>