<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">The problem is the entry in your
known_hosts file. Previously the name / ip relationship was
different and now it is different. You can safely remove the entry
for that ip/name from /home/larry/.ssh/known_hosts . The next time
you ssh, you will be asked , and once you press yes, it should be
fine there after.<br>
<br>
Thanks<br>
<br>
<div class="moz-signature"><b>Amit K Nepal<br>
Infrastructure Engineer (RHCE)<br>
<a href="http://www.omnovia.com">omNovia Technologies Inc.</a><br>
<a href="http://www.amitnepal.com">Amit K Nepal</a><a
href="http://www.amitnepal.com"><br>
</a></b></div>
On 11/30/2012 5:01 PM, Dazed_75 wrote:<br>
</div>
<blockquote
cite="mid:CABvP5O+agxjgzoyzJyn6_xPnDW166o4mKqhtemPrNPt4aDG4bw@mail.gmail.com"
type="cite">I am able to ssh to a machine on the LAN using either
host name (my router has dnsmasq turned on) or IP. That works
just fine. <br>
<br>
My confusion started when I took a machine called lapdog2 which
used to dual boot Vista and Ubuntu (through several releases) with
both named lapdog2. I would ssh into Ubuntu there with no
problem. <br>
<br>
I just replaced the hard drive and only installed ubuntu 12.10 and
LinuxMint 14 as a dual boot (yes, it is a bit redundant but I had
my reasons) and named them lapdog0 and lapdog1 respectively. I
can still ssh by name or IP but ssh tells me every time that the
host key for that IP differs from the one stored when it was
lapdog2 (entry 8): It does not seem to tell me there is any
difference for lapdog0 (entry 22) vs lapdog1 (entry 23):<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex" class="gmail_quote">larry@hammerhead:~$
ssh lapdog1<br>
Warning: the ECDSA host key for 'lapdog1' differs from the key
for the IP address '192.168.2.124'<br>
Offending key for IP in /home/larry/.ssh/known_hosts:8<br>
Matching host key in /home/larry/.ssh/known_hosts:23<br>
Are you sure you want to continue connecting (yes/no)? yes<br>
Welcome to Linux Mint 14 Nadia (GNU/Linux 3.5.0-17-generic i686)<br>
<br>
Welcome to Linux Mint<br>
* Documentation: <a moz-do-not-send="true"
href="http://www.linuxmint.com">http://www.linuxmint.com</a><br>
Last login: Fri Nov 30 16:40:24 2012 from <a
moz-do-not-send="true" href="http://hammerhead.thiel.org">hammerhead.thiel.org</a><br>
larry@lapdog1 ~ $ logout<br>
Connection to lapdog1 closed.<br>
larry@hammerhead:~$ ssh lapdog0<br>
Warning: the ECDSA host key for 'lapdog0' differs from the key
for the IP address '192.168.2.124'<br>
Offending key for IP in /home/larry/.ssh/known_hosts:8<br>
Matching host key in /home/larry/.ssh/known_hosts:22<br>
Are you sure you want to continue connecting (yes/no)? yes<br>
Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-18-generic i686)<br>
<br>
* Documentation: <a moz-do-not-send="true"
href="https://help.ubuntu.com/">https://help.ubuntu.com/</a><br>
<br>
14 packages can be updated.<br>
13 updates are security updates.<br>
<br>
Last login: Fri Nov 30 16:21:16 2012 from <a
moz-do-not-send="true" href="http://hammerhead.thiel.org">hammerhead.thiel.org</a><br>
larry@lapdog0:~$ <br>
</blockquote>
<br>
The only thing I can think of is that the name does not matter (it
was just resolved by dnsmasq to the same IP) and the old ubuntu
was on a different kernel (one of you told me once that the kernel
matters for ssh by ECDSA key).<br>
<br>
But then why would keys 22 and 23 both be used and without
complaint between them? What am I missing?<br clear="all">
<br>
-- <br>
Dazed_75 a.k.a. Larry<br>
<br>
Please protect my address like I protect yours. When sending
messages to multiple recipients, use the BCC: (Blind carbon copy).
Remove addresses from a forwarded message body before clicking
Send. <br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">---------------------------------------------------
PLUG-discuss mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a>
To subscribe, unsubscribe, or to change your mail settings:
<a class="moz-txt-link-freetext" href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></pre>
</blockquote>
<br>
</body>
</html>