SSH clients store host keys for hosts they have ever connected to. These stored host keys are called known host keys, and the collection is often called known hosts. In OpenSSH, the collection of known host keys is stored in /etc/ssh/known_hosts and in . ssh/known_hosts in each user's home directory.
Questions tagged [known-hosts]
17 questions
0
votes
2 answers
known_hosts file permissions issue when trying to git pull from PHP
I'm trying to set up a simple PHP script that can do a git pull when you go to a particular URL on an AWS Amazon Linux 2 AMI test web server I have set up.
I ran into some issues trying to do that though, and have since been following this article…

HartleySan
- 7,404
- 14
- 66
- 119
-2
votes
1 answer
How can I add my host to known hosts manually?
I try to add my host to known host via terminal:
ssh-keyscan -H 195.118.254.45 >> ~/.ssh/known_hosts
But when I open my known hosts file with text edit, then it is still empty. Nothing was added.

peace_love
- 6,229
- 11
- 69
- 157