X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=06265e8de32e3a859e575e511745d0fe81ec3c0a;hp=9488f55e957c7bc974d53864610073b3e6d8c446;hb=12e47aed34dc3c59822af79dfec0a93fec810e00;hpb=a0b548a079931653d7b3a49b80062e324239873e diff --git a/autoconfig.functions b/autoconfig.functions index 9488f55..06265e8 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1121,6 +1121,22 @@ if checkbootparam 'ssh' ; then eoutdent fi } + +# }}} + +# {{{ display hostkeys of SSH server +config_display_ssh_fingerprints() { + if ! find /etc/ssh/ -name ssh_host_\*_key >/dev/null 2>&1 ; then + return 0 # no SSH host keys present + fi + + einfo "SSH key fingerprints:" + for file in /etc/ssh/ssh_host_*_key ; do + einfon + ssh-keygen -l -f $file + done | column -t + eend $? +} # }}} # {{{ autostart of x11vnc @@ -1473,6 +1489,7 @@ config_stats() { fi } # }}} + # {{{ fix/workaround for unionfs fix_unionfs(){ if [ -z "$INSTALLED" ]; then