Find the answer to your Linux question:
Results 1 to 7 of 7
could some body help in solving my problem in accessing other host using ssh. Below is the log i am getting when trying to connect to other PC: debian:/home/sait81# ssh ...
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    1

    ssh problem

    could some body help in solving my problem in accessing other host using ssh. Below is the log i am getting when trying to connect to other PC:

    debian:/home/sait81# ssh -v 192.168.x.x

    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
    d4:38:a5:ca:f9:c2:41:bd:55:82:ba:b6:0d:6a:75:4b.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending key in /root/.ssh/known_hosts:3
    RSA host key for 192.168.x.x has changed and you have requested strict checking.
    Host key verification failed.


    any answer is greatly appreciated

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,102
    Not to be mean, but *read the output*

    It says, that the RSA host key of the server you are trying to connect has changed.
    That can happen, if you (for example) reinstalled that box, ot IPs have been moved between hosts.

    If you are not aware of a change to the remote server, then this is reason to be alarmed and investigate that host very closely.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    6

    if you trust the server you are connecting to...

    This message you are seeing is because the hosts public key is different than you previous connection. This may be perfectly safe... perhaps they reinstalled ssh or changed IP's... whatever. If you trust this server, you only need to remove the old host key from you local known_hosts file.

    $ cd~
    $ vi .ssh/known_hosts

    search for the line corresponding to the remote host. It will start with 192.168.x.x and just delete that line. Save the file and reconnect. The next time you connect you will be prompted to accept the servers key, answer" yes" and you should get prompted for authentication. Answering" yes" writes this new key to your known_hosts file.

    Good luck,
    dufftime

  4. #4
    Just Joined!
    Join Date
    Feb 2009
    Posts
    22
    Quote Originally Posted by dufftime View Post
    This message you are seeing is because the hosts public key is different than you previous connection. This may be perfectly safe... perhaps they reinstalled ssh or changed IP's... whatever. If you trust this server, you only need to remove the old host key from you local known_hosts file.

    $ cd~
    $ vi .ssh/known_hosts

    search for the line corresponding to the remote host. It will start with 192.168.x.x and just delete that line. Save the file and reconnect. The next time you connect you will be prompted to accept the servers key, answer" yes" and you should get prompted for authentication. Answering" yes" writes this new key to your known_hosts file.

    Good luck,
    dufftime
    i guess we used to get the same issue when we changed the NIC card of the host. But yeah deleting the entry form the known_host file does resolves the issue.

  5. #5
    Just Joined!
    Join Date
    Sep 2008
    Posts
    20
    Quote Originally Posted by kitux View Post
    could some body help in solving my problem in accessing other host using ssh. Below is the log i am getting when trying to connect to other PC:

    debian:/home/sait81# ssh -v 192.168.x.x

    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
    d4:38:a5:ca:f9:c2:41:bd:55:82:ba:b6:0d:6a:75:4b.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending key in /root/.ssh/known_hosts:3
    RSA host key for 192.168.x.x has changed and you have requested strict checking.
    Host key verification failed.


    any answer is greatly appreciated
    You are probably connecting to a server where something changed (i.e. IP address, NIC, or merely ssh pvt key/fingerprint).
    Anyway, if you are sure that this is correct, simply edit your file /root/.ssh/known_hosts, remove line #3 and save.
    Then try to reconnect and answer yes to the question "The authenticity of host 'machine-name (192.168.x.x)' can't be established. ... RSA key fingerprint is ....
    Are you sure you want to continue connecting (yes/no)?
    "

    Have a nice day.
    G.

  6. #6
    Just Joined!
    Join Date
    Apr 2007
    Posts
    1
    Quote Originally Posted by kitux View Post
    could some body help in solving my problem in accessing other host using ssh. Below is the log i am getting when trying to connect to other PC:

    debian:/home/sait81# ssh -v 192.168.x.x

    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
    d4:38:a5:ca:f9:c2:41:bd:55:82:ba:b6:0d:6a:75:4b.
    Please contact your system administrator.
    Add correct host key in /root/.ssh/known_hosts to get rid of this message.
    Offending key in /root/.ssh/known_hosts:3
    RSA host key for 192.168.x.x has changed and you have requested strict checking.
    Host key verification failed.


    any answer is greatly appreciated
    Remove line 3 from /root/.ssh/known_hosts

    A machine was probably rebooted.

  7. #7
    Just Joined! tyho's Avatar
    Join Date
    Oct 2010
    Location
    Mwanza, Tanzania
    Posts
    76
    Are we playing the "post-the-same-hint-as-often-as-possible-game"?? GREAT game!

    Quote Originally Posted by jwweav View Post
    A machine was probably rebooted.
    How can a reboot change the RSA key?

Posting Permissions

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