What is linux known_hosts 's stuff?

receive information from Ali CVM and actively connect malicious IP

what does it mean that there is a known_hosts
in the .ssh? when was it generated?

[root@iZ2zeh69m8hhqtn9z5v9noZ ~]-sharp cd /root/.ssh/
[root@iZ2zeh69m8hhqtn9z5v9noZ .ssh]-sharp cat known_hosts 
github.com,192.30.255.113 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
192.30.255.112 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
[root@iZ2zeh69m8hhqtn9z5v9noZ .ssh]-sharp 

known_hosts is used for server authentication.

when you use ssh to connect to a new server, ssh will ask you to confirm the server's information (domain name, IP, public key). If you do, it will be written to known_hosts.

clipboard.png

later you connect to the server, but when the information changes (usually the public key changes), it will prompt you that the server information has changed. You can delete it from known_hosts and reconfirm it.

look at your known_hosts,. Github.com, shows that you have pulled the github code on this server:)


there is a very detailed explanation of this document in

Previous: Thinkphp5.1 $this- > request- > isPost () question

Next: Php, website visit ip according to time record

Menu