The RSA host key differs from the key for the IP Address warning

IP Address and RSA host key are different error

SSH would allow you to log into your remote server/computer from anywhere and it is very important tool.

Fix password less entry from ubuntu to mac

There are two major ways that you can log into server:

  • Using username and password
  • Using password less approach using ssh keys

How to use ssh

When you are using ssh without password, you might get the warning The RSA host key differs from the key for the IP Address warning

The RSA host key differs from the key for the IP Address warning would occur when you try to ssh to the server.

This a typical error of known_hosts when the remote server is changed or the ip match is no longer valid.

Solution

Being on the client do

cd ~/.ssh
>known_hosts

The above will clear the known_hosts file. But this would clear all the contents in the known hosts.

If you know the offending row you can clear that only

See how you would solve these known algorithm problems

Find K Complementary numbers from array Java implementation

find longest word in the sentence

Array reversal in Recurrsion

Find the pairs that makes K Complementary in the given array java solution

Java solution for checking anagram strings – tell if phrases are anagrams

Changing decimal number to its binary equivalent

String Ordered Permutation Algorithm Problem

Get maximum occurring character

Finding missing numbers from billion sequential number list file

Check if two strings are anagrams or not

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*