Find the answer to your Linux question:
Results 1 to 8 of 8
ssh user@hostname @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5

    ssh reseting

    ssh user@hostname

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@


    @ 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
    b2:11:94:bf:7d:c5:58:59:54:f4:e9:e8:c7:c7:0e:63.
    Please contact your system administrator.
    Add correct host key in /home/safaricom/.ssh/known_hosts to get rid of this message.
    Offending key in /home/safaricom/.ssh/known_hosts:1
    RSA host key for ppgp2 has changed and you have requested strict checking.
    Host key verification failed.


    I just restarted my server.
    How do i resolve this?

  2. #2
    Just Joined!
    Join Date
    Apr 2007
    Posts
    4

    Possible answer

    It looks like the ssh key on the remote machine has changed from the last time you connected before the error.

    You can either empty the content of following file or remove the line that is associated to that host.

    /home/safaricom/.ssh/known_hosts

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    Quote Originally Posted by joshaven
    It looks like the ssh key on the remote machine has changed from the last time you connected before the error.

    You can either empty the content of following file or remove the line that is associated to that host.

    /home/safaricom/.ssh/known_hosts

    I have been doing that every time I need to connect to the host....and every application that involves connecting to another host is always disconnected...
    I don't think i can do keep doing this all the time....How do i resolve this once and for all???

  4. #4
    Just Joined!
    Join Date
    Apr 2007
    Posts
    4
    At this point I am guessing...

    Try removing and reinstalling openssh-client & keychain

    sudo apt-get remove openssh-client keychain

    #then delete your known hosts file one last time
    rm ~/.ssh/known_hosts
    # if you have trouble locating your known_hosts file or want to delet the
    # file under all profiles you can use this command to locate it:
    # locate known_hosts

    #Now reinstall openssh client and keychain
    # Keychain is an OpenSSH key manager
    sudo apt-get install openssh-client keychain

    Good luck and feel free to let me know the outcome, I will help more if I can.

  5. #5
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    mwagz, something is seriously messed up (assuming you aren't rebuilding your sshd server constantly).

    Pay attention to these lines:
    Code:
    The fingerprint for the RSA key sent by the remote host is
    b2:11:94:bf:7d:c5:58:59:54:f4:e9:e8:c7:c7:0e:63.
    Is the fingerprint exactly the same every time you see that message? Or does it change each time?

  6. #6
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    After some time I get " Connection reset by peer"....
    Is this related to ssh server?

  7. #7
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    mwagz, you lost me. This sounds like a different problem.

    Did you try any of the suggestions in the thread thus far? What happened when you tried them? Can I get an answer to the questions from my last post?

  8. #8
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    I have tried all suggestions given....It seems my situation is worse...

    My connection resets after a short interval...and refuses connection for some 20 secs...

    root@ubuntu-laptop:/home/bernard# ssh user@hostname
    ssh: connect to host hostname port 22: Connection refused

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •