summaryrefslogtreecommitdiff
path: root/tools/write-ssh-key-fingerprints
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-08-10 09:06:15 -0600
committerScott Moser <smoser@ubuntu.com>2016-08-10 09:06:15 -0600
commitc3c3dc693c14175e110b5fe125d4d5f98ace9700 (patch)
tree8858702c2c8a6ad4bf1bb861a4565e0a9c28e588 /tools/write-ssh-key-fingerprints
parent5bd3493d732e5b1902872958e8681f17cbc81ce5 (diff)
downloadcloud-init-trunk.tar.gz
README: Mention move of revision control to git.HEADtrunk
cloud-init development has moved its revision control to git. It is available at https://code.launchpad.net/cloud-init Clone with git clone https://git.launchpad.net/cloud-init or git clone git+ssh://git.launchpad.net/cloud-init For more information see https://git.launchpad.net/cloud-init/tree/HACKING.rst
Diffstat (limited to 'tools/write-ssh-key-fingerprints')
-rwxr-xr-xtools/write-ssh-key-fingerprints38
1 files changed, 0 insertions, 38 deletions
diff --git a/tools/write-ssh-key-fingerprints b/tools/write-ssh-key-fingerprints
deleted file mode 100755
index 6c3451fd..00000000
--- a/tools/write-ssh-key-fingerprints
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-
-logger_opts="-p user.info -t ec2"
-
-# rhels' version of logger_opts does not support long
-# for of -s (--stderr), so use short form.
-logger_opts="$logger_opts -s"
-
-# Redirect stderr to stdout
-exec 2>&1
-
-fp_blist=",${1},"
-key_blist=",${2},"
-{
-echo
-echo "#############################################################"
-echo "-----BEGIN SSH HOST KEY FINGERPRINTS-----"
-for f in /etc/ssh/ssh_host_*key.pub; do
- [ -f "$f" ] || continue
- read ktype line < "$f"
- # skip the key if its type is in the blacklist
- [ "${fp_blist#*,$ktype,}" = "${fp_blist}" ] || continue
- ssh-keygen -l -f "$f"
-done
-echo "-----END SSH HOST KEY FINGERPRINTS-----"
-echo "#############################################################"
-
-} | logger $logger_opts
-
-echo "-----BEGIN SSH HOST KEY KEYS-----"
-for f in /etc/ssh/ssh_host_*key.pub; do
- [ -f "$f" ] || continue
- read ktype line < "$f"
- # skip the key if its type is in the blacklist
- [ "${key_blist#*,$ktype,}" = "${key_blist}" ] || continue
- cat $f
-done
-echo "-----END SSH HOST KEY KEYS-----"