Page MenuHomePhabricator

When ~/.ssh/known_hosts is removed, I still get SSH_KNOWN_HOSTS_UNKNOWN, not SSH_KNOWN_HOSTS_NOT_FOUND
Closed, ResolvedPublic

Description

The comment for SSH_KNOWN_HOSTS_NOT_FOUND in include/libssh/libssh.h and in http://api.libssh.org/master/group__libssh__session.html#ga874d3246c9c9bfc7040302e10650bce8 says:

SSH_KNOWN_HOSTS_NOT_FOUND: The known host file does not exist. The host is thus unknown. File will be created if host key is accepted.

However, when I remove my ~/.ssh/known_hosts, I still get SSH_KNOWN_HOSTS_UNKNOWN from ssh_session_has_known_hosts_entry, not SSH_KNOWN_HOSTS_NOT_FOUND.