Skip to content

neirbowj/sshfpgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Generate Secure Shell Fingerprint DNS Resource Records

Usage:

./sshfpgen

Summary

This is a small shell script that uses commonly available utilities to generate textual representations of SSHFP RRs from the host keys on the current host. Copy and paste the output into your own BIND zone file.

Background

Read RFC 4255, RFC 6594, and the IANA registry for applicable parameters for all you could ever want to know about this DNS RR type.

Requirements and assumptions

This script depends upon

  • OpenSSL --- Provides cryptographic hash (message digest) computation
  • xxd --- Converts between binary and hexidecimal encoding (ships with vim)

Per the OpenSSH convention, this script will seek the following files as input:

/etc/ssh/ssh_host_rsa_key.pub
/etc/ssh/ssh_host_dsa_key.pub
/etc/ssh/ssh_host_ecdsa_key.pub

Future versions (patches accepted) may permit command line arguments to generate specific record types for arbitrary SSH keys.

About

Shell script to generate SSHFP RRs for DNS from SSH host keys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages