UPDATE-OPENSSH-KNOWN-HOSTS(8) | UPDATE-OPENSSH-KNOWN-HOSTS(8) |
update-openssh-knwon-hosts - download, filter and merge known_hosts for OpenSSH
update-openssh-known-hosts [-f]
update-openssh-known-hosts manages downloading, filtering and mergeing of ssh_known_hosts files from anywhere into one local file for use by ssh(1).
Returns zero on success and anything else on error.
A source definition is shell snippet dropped into CONFDIR/sources/ with a run-parts(8) compliant name. There are two variables not specific to a download plugin:
Download plugins are executables dropped into PLUGIN_PATH and referenced via the PLUGIN variable in the source definition. A plugin gets the variables set in the source definition in its environment. The working directory will be set to the source’s cache directory. Everything a plugin has to do is to create a file named “new”. “current” must not be touched but can be used as a hint to skip downloading the same file again. stdout and stderr will be connected to “log”, which will be output on error. Plugins needn’t create “new” if it would be identical to “current”.
Place a file foo.filter next to your source definition foo. Each line shall contain a rule consisting of an action, a space and a pattern. The first rule with a matching pattern decides: If the action starts with a, o, p or y (for accept, admit, allow, ok, pass, permit, print, yes, ...) the hostname will be used, otherwise it is discarded. If a key has no hostnames left it is discarded as a whole.
ssh(1), sshd(8), ssh_config(5), curl(1), rsync(1), psql(1), run-parts(8)
Timo Weingärtner <timo@tiwe.de>.
2014-02-03 |