<div dir="ltr"><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;color:rgb(75,75,75)">I am trying to login into VM from host using ssh key pair instead of password. I have created VM using keypair <strong>khayamkey</strong> and than tried to login into vm using following command</p><pre class="" style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12.025px;margin-top:0px;margin-bottom:18px;padding:2px;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-break:break-all;word-wrap:break-word;clear:both;background-color:rgb(245,245,245)"><code style="font-family:Menlo,Monaco,'Courier New',monospace;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;clear:both;background-color:transparent"><span class="" style="color:rgb(0,0,0)">ssh </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">l tux </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">i khayamkey</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">pem </span><span class="" style="color:rgb(0,102,102)">10.3</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,102,102)">24.56</span></code></pre><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;color:rgb(75,75,75)">where <strong>tux</strong> is username for VM, but I got following error</p><pre class="" style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12.025px;margin-top:0px;margin-bottom:18px;padding:2px;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-break:break-all;word-wrap:break-word;clear:both;background-color:rgb(245,245,245)"><code style="font-family:Menlo,Monaco,'Courier New',monospace;padding:0px;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;clear:both;background-color:transparent"><span class="" style="color:rgb(102,102,0)">@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,102,0)">@</span><span class="" style="color:rgb(0,0,0)"> WARNING</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> REMOTE HOST IDENTIFICATION HAS CHANGED</span><span class="" style="color:rgb(102,102,0)">!</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">@</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,102,0)">@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</span><span class="" style="color:rgb(0,0,0)">
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY</span><span class="" style="color:rgb(102,102,0)">!</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">Someone</span><span class="" style="color:rgb(0,0,0)"> could be eavesdropping on you right now </span><span class="" style="color:rgb(102,102,0)">(</span><span class="" style="color:rgb(0,0,0)">man</span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,136)">in</span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">the</span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">middle attack</span><span class="" style="color:rgb(102,102,0)">)!</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">It</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(0,0,136)">is</span><span class="" style="color:rgb(0,0,0)"> also possible that a host key has just been changed</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">The</span><span class="" style="color:rgb(0,0,0)"> fingerprint </span><span class="" style="color:rgb(0,0,136)">for</span><span class="" style="color:rgb(0,0,0)"> the RSA key sent </span><span class="" style="color:rgb(0,0,136)">by</span><span class="" style="color:rgb(0,0,0)"> the remote host </span><span class="" style="color:rgb(0,0,136)">is</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(0,102,102)">52</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">5c</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">47</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">33</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)">dd</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)">d0</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">7a</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)">cd</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">0e</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">78</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">8d</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">9b</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">66</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)">d8</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">74</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)">a3</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">Please</span><span class="" style="color:rgb(0,0,0)"> contact your system administrator</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">Add</span><span class="" style="color:rgb(0,0,0)"> correct host key </span><span class="" style="color:rgb(0,0,136)">in</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">home</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">openstack</span><span class="" style="color:rgb(102,102,0)">/.</span><span class="" style="color:rgb(0,0,0)">ssh</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">known_hosts to </span><span class="" style="color:rgb(0,0,136)">get</span><span class="" style="color:rgb(0,0,0)"> rid of </span><span class="" style="color:rgb(0,0,136)">this</span><span class="" style="color:rgb(0,0,0)"> message</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">Offending</span><span class="" style="color:rgb(0,0,0)"> RSA key </span><span class="" style="color:rgb(0,0,136)">in</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">home</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">openstack</span><span class="" style="color:rgb(102,102,0)">/.</span><span class="" style="color:rgb(0,0,0)">ssh</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">known_hosts</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">1</span><span class="" style="color:rgb(0,0,0)">
remove </span><span class="" style="color:rgb(0,0,136)">with</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> ssh</span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">keygen </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">f </span><span class="" style="color:rgb(0,136,0)">"/home/openstack/.ssh/known_hosts"</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">R </span><span class="" style="color:rgb(0,102,102)">10.3</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,102,102)">24.56</span><span class="" style="color:rgb(0,0,0)">
RSA host key </span><span class="" style="color:rgb(0,0,136)">for</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(0,102,102)">10.3</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,102,102)">24.56</span><span class="" style="color:rgb(0,0,0)"> has changed </span><span class="" style="color:rgb(0,0,136)">and</span><span class="" style="color:rgb(0,0,0)"> you have requested strict checking</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">
</span><span class="" style="color:rgb(102,0,102)">Host</span><span class="" style="color:rgb(0,0,0)"> key verification failed</span><span class="" style="color:rgb(102,102,0)">.</span></code></pre><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:'Helvetica Neue',Arial,Helvetica,sans-serif;color:rgb(75,75,75)">P.S: I know if I run <code style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12px;padding:2px 4px;color:rgb(221,17,68);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:1px solid rgb(225,225,232);clear:both;background-color:rgb(247,247,249)">ssh-keygen -f "/home/openstack/.ssh/known_hosts" -R 10.3.24.56</code> problem can be solved but than I have to provide password to log in to VM, but my goal is to use keypairs NOT password.</p></div>