This was actually fix-committed in upstream cloud-init at revision 471. http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/471
-ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub -ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub +for f in /etc/ssh/ssh_host_*key.pub; do + [ -f "$f" ] || continue + ssh-keygen -l -f "$f" +done
This was actually fix-committed in upstream cloud-init at revision 471. bazaar. launchpad. net/~cloud- init-dev/ cloud-init/ trunk/revision/ 471
http://
-ssh-keygen -l -f /etc/ssh/ ssh_host_ rsa_key. pub ssh_host_ dsa_key. pub ssh_host_ *key.pub; do
-ssh-keygen -l -f /etc/ssh/
+for f in /etc/ssh/
+ [ -f "$f" ] || continue
+ ssh-keygen -l -f "$f"
+done