Bash script to update SSHFP records with nsupdate.
Go to file
Keith Irwin 25a70e390a
Tiny misnaming
2023-11-03 20:12:59 -06:00
systemd Tiny misnaming 2023-11-03 20:12:59 -06:00
LICENSE.md Created README and LICENSE 2023-11-03 19:19:19 -06:00
README.md Fixed installation instructions 2023-11-03 20:00:17 -06:00
nsupdate-sshfp Added argument for server 2023-11-03 19:51:01 -06:00

README.md

nsupdate-sshfp

Keith Irwin (www.ki9.us) License: MIT

Bash script to update SSHFP records using nsupdate.

Installation

# git clone https://gitea.green.gf4/ki9/nsupdate-sshfp.git /usr/local/src/nsupdate-sshfp
# ln -s /usr/local/src/nsupdate-sshfp/nsupdate-sshfp /usr/local/bin/nsupdate-sshfp
# cp /usr/local/src/nsupdate-sshfp/systemd/* /etc/systemd/system/

Upgrade

# cd /usr/local/src/nsupdate-sshfp/
# git pull

Usage

$ nsupdate-sshfp <domain> <server> <ttl> <tsig>

For example:

$ nsupdate-sshfp ssh.example.com ns.example.com 86400 'hmac-sha512:mykeyname:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=='