Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: [SOLVED] ssh fails due to changed RSA fingerprint

  1. #1
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Unhappy [SOLVED] ssh fails due to changed RSA fingerprint

    I have been happily using ssh to log on to another computer for some time.

    Now, suddenly, it doesn't work. I tried to connect as usual, and I got a message saying that the fingerprint of the host had changed. I had to delete my ~/.ssh/known_hosts file.

    If I now try to connect, it first asks me whether I trust the authenticity of the host. I say yes, and then it lets me enter the password. However, it always rejects the password.

    I get the same thing if I go to the other computer and try to connect to my own.

    Why has this happened?
    If people were nicer, I'd answer more queries here!

  2. #2

    Re: ssh fails due to changed RSA fingerprint

    moved to server platforms.
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  3. #3
    Join Date
    May 2008
    Location
    Birmingham, UK
    Beans
    283
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: ssh fails due to changed RSA fingerprint

    The problem probably lies in the computer you are trying to log into. Perhaps the username or password has been changed, or the owner has changed the sshd configuration file to permit access only by certain users, or in some other way.

  4. #4
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh fails due to changed RSA fingerprint

    Quote Originally Posted by cpetercarter View Post
    The problem probably lies in the computer you are trying to log into. Perhaps the username or password has been changed, or the owner has changed the sshd configuration file to permit access only by certain users, or in some other way.
    No, that's not it.
    If people were nicer, I'd answer more queries here!

  5. #5
    Join Date
    Dec 2007
    Location
    Idaho
    Beans
    4,976
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: ssh fails due to changed RSA fingerprint

    Generally if the RSA fingerprint changes and there's no reason for the server to have regenerated it's keys; Your not connecting to the machine you think you are.

    I'm immediately suspicious of some sort of man in the middle attack.

    I don't know how to go about finding out more though
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  6. #6
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh fails due to changed RSA fingerprint

    Our ADSL modem/router is connected to the internet, and provides a local network. Its local IP address is 10.1.1.1.

    This computer is 10.1.1.2. The other computer is 10.1.1.3.

    Each computer runs Hardy, and has one account on each. I know the passwords for both.

    The command “ssh erin@10.1.1.3” used to work.
    Last edited by Pro-reason; September 12th, 2008 at 08:49 AM.
    If people were nicer, I'd answer more queries here!

  7. #7
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: ssh fails due to changed RSA fingerprint

    Can you log on to the computer itself, that is if you've got a keyboard and monitor hooked up to it?

    Jim

  8. #8
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh fails due to changed RSA fingerprint

    Quote Originally Posted by cariboo907 View Post
    Can you log on to the computer itself, that is if you've got a keyboard and monitor hooked up to it?

    Jim
    Of course.
    If people were nicer, I'd answer more queries here!

  9. #9
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ssh fails due to changed RSA fingerprint

    Quote Originally Posted by jerome1232 View Post
    Generally if the RSA fingerprint changes and there's no reason for the server to have regenerated it's keys; Your not connecting to the machine you think you are.

    I'm immediately suspicious of some sort of man in the middle attack.

    I don't know how to go about finding out more though
    I'd think more like his IP is not static and when he logs in with the new DHCP address, ssh does not recognize the machine or associates it with another machine that was allocated that address at another time.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  10. #10
    Join Date
    Jul 2008
    Location
    $HOME
    Beans
    1,030
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: ssh fails due to changed RSA fingerprint

    Quote Originally Posted by windependence View Post
    I'd think more like his IP is not static and when he logs in with the new DHCP address, ssh does not recognize the machine or associates it with another machine that was allocated that address at another time.

    -Tim
    The IP address that our ISP assigns us is dynamic, but on this side of the router the IP addresses are stable: 10.1.1.1, 10.1.1.2, and 10.1.1.3.

    Would the external address make any difference?
    If people were nicer, I'd answer more queries here!

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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