Use SSH to log on to a machine. sometimes the following information appears due to some changes on the server: @ WARNING: REMOTEHOSTIDENTIFICATIONHASCHANGED! & Nbsp use SSH to log on to a machine. sometimes the following information may appear due to some changes on the server:
@ WARNING: remote host identification has changed! @
It is possible that someone is doing something nasty!
Someone cocould 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
50: e6: cb: 58: bc: b7: a3: f6: e8: 8f: 46: a7: c1: 5f: c2: df.
Please contact your system administrator.
Add correct host key in/home/cobyeah/. ssh/known_hosts to get rid of this message.
Offending key in/home/cobyeah/. ssh/known_hosts: 7
RSA host key for 192.168.0.4 has changed and you have requested strict checking.
Host key verification failed.
(I will not mention the principle here. I will only talk about the solution. if you need to know the reason, please leave a message or find other materials)
At this time, there are three processing methods:
1. delete the row number in the prompt, for example, in the previous example, delete row 7th of the/home/cobyeah/. ssh/known_hosts file.
2. delete the entire/home/cobyeah/. ssh/known_hosts file.
3. modify the configuration of the/etc/ssh/ssh_config file. this problem will not occur again later. StrictHostKeyChecking no
UserKnownHostsFile/dev/null
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service