欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Warning: Permanently added to the list of known hosts

程序员文章站 2022-03-08 20:48:10
...
源:https://*.com/questions/9299651/git-says-warning-permanently-added-to-the-list-of-known-hosts
评:

203
down vote
accepted
Solution: create a ~/.ssh/config file and insert the line:

UserKnownHostsFile ~/.ssh/known_hosts
You will then see the message the next time you access Github, but after that you'll not see it anymore because the host is added to the known_hosts file. This fixes the issue, rather than just hiding the log message.