Offending Key for IP when connecting to aws server in ubuntu

0

Message pops up when i connect to my ec2 machine

Offending key for IP in /home/myuser/.ssh/known_hosts:8
Matching host key in /home/myuser/.ssh/known_hosts:24

Please help me to resolve it

Rahul juneja

Posted 2017-05-03T13:12:27.533

Reputation: 1

2If you know that the key has indeed changed you can fix it by deleting the old key. With GNU sed, for example, sed -i -e 8d ~/.ssh/known_hosts would delete the 8th line. – Eric Renouf – 2017-05-03T14:04:00.967

thanks, i removed the no. 8 line from ~/.ssh/known_hosts and it worked – Rahul juneja – 2017-05-09T07:02:31.493

No answers