"ssh-keygen -R hostname" errors out with non-existent known_hosts

Thorsten Glaser t.glaser at tarent.de
Wed Mar 24 13:13:37 AEDT 2021


On Tue, 23 Mar 2021, Noah Zalev wrote:

> It may be a success according to your semantics in this instance, but
> what about in cases where the known_host file *should* have been
> found, but wasn't?

What do you care?

Its job is to ensure the next ssh to that host will not have an old
host key in the way. If there’s no known_hosts file, that’s done.

If you really need to test whether that file exists… test(1) exists.

Don’t complicate things.

bye,
//mirabilos
-- 
«MyISAM tables -will- get corrupted eventually. This is a fact of life. »
“mysql is about as much database as ms access” – “MSSQL at least descends
from a database” “it's a rebranded SyBase” “MySQL however was born from a
flatfile and went downhill from there” – “at least jetDB doesn’t claim to
be a database”	(#nosec)    ‣‣‣ Please let MySQL and MariaDB finally die!


More information about the openssh-unix-dev mailing list