Discussion:
Problem in logging in freerunner through ssh
saurabh gupta
2008-07-17 19:10:16 UTC
Permalink
Hi all,

I followed the steps given in "Getting started with freerunner" on wiki to
install the sample application in my free runner. I started the FR normally
and then connect it through a usb cable. However after executing the
command :
sudo ifconfig usb0 192.168.0.200 netmask 255.255.255.0
when i executed "ssh root at 192.168.0.202", the following error message
occurred:

================================================
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
37:a6:d4:f0:35:89:7c:6f:85:c4:9a:2f:31:c5:3f:35.
Please contact your system administrator.
Add correct host key in /home/saurabhg/.ssh/known_hosts to get rid of this
message.
Offending key in /home/saurabhg/.ssh/known_hosts:3
RSA host key for 192.168.0.202 has changed and you have requested strict
checking.
Host key verification failed.

=========================================================

Can anyone suggest me the problem and the solution to fix it.

Thanks ...
--
Saurabh Gupta
Electronics and Communication Engg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20080718/02b2e09d/attachment.htm
Alessandro Sappia
2008-07-17 19:20:28 UTC
Permalink
you have already an RSA fingerprint in your known_hosts

simply edit
.ssh/known_hosts

you'll find a line with 192.168.0.202

maybe you have ssh'd to an host with the same IP earlier.

remove the line if you want to, and all will be fine.

pay attention that if you ssh to that other computer you'll get the same
warning.

note: 192.168.0.202 is IANA private use, so it's normal to have
duplicates of that IP among different
network

Alessandro

On Thu, Jul 17, 2008 at 9:10 PM, saurabh gupta
Post by saurabh gupta
Hi all,
I followed the steps given in "Getting started with freerunner" on wiki to
install the sample application in my free runner. I started the FR normally
and then connect it through a usb cable. However after executing the
sudo ifconfig usb0 192.168.0.200 netmask 255.255.255.0
when i executed "ssh root at 192.168.0.202", the following error message
================================================
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
37:a6:d4:f0:35:89:7c:6f:85:c4:9a:2f:31:c5:3f:35.
Please contact your system administrator.
Add correct host key in /home/saurabhg/.ssh/known_hosts to get rid of this
message.
Offending key in /home/saurabhg/.ssh/known_hosts:3
RSA host key for 192.168.0.202 has changed and you have requested strict
checking.
Host key verification failed.
=========================================================
Can anyone suggest me the problem and the solution to fix it.
Thanks ...
--
Saurabh Gupta
Electronics and Communication Engg.
--
Alessandro Sappia
a.sappia at gmail.com
Andy Green
2008-07-17 19:53:22 UTC
Permalink
Somebody in the thread at some point said:

| pay attention that if you ssh to that other computer you'll get the same
| warning.
|
| note: 192.168.0.202 is IANA private use, so it's normal to have
| duplicates of that IP among different
| network

My local network is 192.168.0.0/24, so it makes a problem to route to
Freerunner default IP... I use this script as root on my Fedora host
laptop to take care of assigning an IP and hst route and whenever I hook
a Freerunner up

#!/bin/sh

while [ 1 ] ; do
~ sleep 5s
~ if [ ! -z "`ifconfig usb0`" ] ; then
~ if [ -z "`ifconfig usb0 | grep "inet addr"`" ] ; then
~ ifconfig usb0 192.168.0.200
~ route add 192.168.0.202 usb0
~ route del -net 192.168.0.0 netmask 255.255.255.0 usb0
~ fi
~ fi
done

- -Andy

Loading...