(solved)Problems connecting via SSH

Discussion in 'Troubleshooting' started by alexandros301, Mar 31, 2014.

  1. alexandros301

    alexandros301 Member

    Joined:
    Mar 22, 2014
    Messages:
    40
    Likes Received:
    0
    When I first got my Udoo I installed the Linaro image and worked a bit on that. Later on I installed a Debian Wheezy image on another SD card but the board kept the same IP address and when I tried to connect via SSH I got this
    Code:
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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 a host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is
    02:d5:2b:40:a0:82:d4:f0:45:65:50:57:cc:31:e0:7d.
    Please contact your system administrator.
    Add correct host key in /Users/alexandrosdrymonitis/.ssh/known_hosts to get rid of this message.
    Offending RSA key in /Users/alexandrosdrymonitis/.ssh/known_hosts:4
    RSA host key for 192.168.2.12 has changed and you have requested strict checking.
    Host key verification failed.
    the /Users/alexandrosdrymonitis/.ssh/known_hosts file contains this line (along with a few others)
    Code:
    192.168.2.12 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC59gujYLyyLwCkVlVPj0JUzn7O/ijxcUC4/ZdSm8XiyYOQo5sxqfJnBqvogL8aB+ri71OCpjM7qayOzd/ElklfFeBoM9FqIXys$XkXcI3uW7kW92gO9SIINU4RfWYjZldYn+ZpQMhPF/4D7nONFZJR873UnLPD62e63DUIyIXAacib0558M4SUW0dUyDlhfej4N3DYmBwDNihwFTEohJjm55bY1APvsGeOVWcI650bG+hvO0jb2UK2z$TXp+MDJYqQWD2nNOFy8iz0p6aKcCR5gvVtQM59APe+DLWkmRWUeiTarJhqggPc6BO660keQ/7Aa4bKralcj8ls9TUXNJNoXt
    
    which is the IP the Udoo gets on boot. What I do is connect via USB using Serial Tools (on OS X) and change the IP like this
    Code:
    sudo ifconfig eth0 192.168.2.13 up
    (got it from some tutorial) and then log in via SSH with the new IP. The problem is that I have to deviate every time I wanna use the Udoo and when I connect via SSH I don't get an internet connection...
    What should I edit in /Users/alexandrosdrymonitis/.ssh/known_hosts to solve this?
     
  2. peter247

    peter247 New Member

    Joined:
    Mar 10, 2014
    Messages:
    263
    Likes Received:
    2
    Re: Problems connecting via SSH

    Try backing up /Users/alexandrosdrymonitis/.ssh/known_hosts and deleting what`s inside.
    That way it should install the new key !!!!
     
  3. alexandros301

    alexandros301 Member

    Joined:
    Mar 22, 2014
    Messages:
    40
    Likes Received:
    0
    Re: Problems connecting via SSH

    You're my mentor!
     

Share This Page