Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

Does the SSH know_host file need a server name?

Asked by Alex Duncan Mar 25, 2022 1.0K views 1 answer
Share

About this question

 When I push/pull repos on GitHub over SSH, sometimes there will be a message about an unidentified server and asks if I want to trust and add it to known_hosts. Apparently this is because GitHub has multiple IPs. What I don't understand is why SSH needs to record the hostname in known_hosts. When I use my private key to authenticate myself to GitHub, there is no need for me to present an IP/domain name to GitHub. Why cant' SSH authenticate the server as original with only its key?

Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.