Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

  • Translate

  • It’s Me




  • My Certificates

  • Links

    My Acclaim Certification : Credly Profile
    My Oracle ACE Pro Profile

  • Achievements

    Awarded Top 100 Oracle Blogs from Worldwide - #RANK 39
  • VISITORS COUNT

  • Verified International Academic Qualification from World Education Service (WES)

    Verified International Academic Qualification from World Education Service (WES)

  • Jobs

How to fix “SSH – “REMOTE HOST IDENTIFICATION HAS CHANGED” in Oracle Linux

Posted by Mir Sayeed Hassan on July 16th, 2020

How to fix “SSH – “REMOTE HOST IDENTIFICATION HAS CHANGED” in Oracle Linux

This Warning has occur in one of our database while trying to connect by using SSH

General Information:  The SSH/Secure shell is to securely login to the remote machine by using the SSH & ensuring that our connection is secure.

Warning message while connecting:

[root@racpdb1 tmp]# scp control107.ctl root@10.110.0.104:/tmp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@   
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
96:9f:60:61:35:71:a8:14:a4:6f:30:1e:ff:7a:39:e7.
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:1
RSA host key for 10.107.0.101 has changed and you have requested strict checking.
Host key verification failed.

Solution using ssh-keygen update:

Syntax: $ ssh-keygen -R [hostname-or-IP]

Example:

[root@racpdb1 tmp]# ssh-keygen -R 10.110.0.104

/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old

Now start copying the files using SSH

[root@racpdb1 tmp]# scp control107.ctl root@10.110.0.104:/tmp

The authenticity of host '10.110.0.104 (10.110.0.104)' can't be established.
RSA key fingerprint is 96:9f:60:61:35:71:a8:14:a4:6f:30:1e:ff:7a:39:e7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.107.0.101' (RSA) to the list of known hosts.
root@10.107.0.101's password:  **********

=====Hence updated your ssh keygen & its resolved, tested & verified in our env=====