Created
September 12, 2017 06:13
-
-
Save drscream/d29b284b4f34ce5b93a20773fa233ea4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Set basedir and default config file | |
| SSH_HOSTS='/var/ssh' | |
| # Update mdata information from SSH host keys | |
| for key in dsa_key dsa_key.pub rsa_key rsa_key.pub ecdsa_key ecdsa_key.pub ed25519_key ed25519_key.pub; do | |
| cat ${SSH_HOSTS}/ssh_host_${key} |\ | |
| mdata-put ssh_host_${key} | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment