SSH keys summary does not report ECDSA key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Unassigned | ||
cloud-init (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The final report of SSH key fingerprints does not include ECDSA:
$ ec2-get-
...
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
f8:bf:48:
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
|. |
| o o . |
| + o . S |
| ..o . |
|+..o.. o |
|+++o. .o o |
|+E=o ... o. |
+-----------------+
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
1d:a6:d9:
The key's randomart image is:
+--[ DSA 1024]----+
| .. |
| E o . |
| o . . o.o |
| + o B.o |
| . So+ |
| . .o.o. |
| ..o. o |
| . o .. |
| oo |
+-----------------+
Generating public/private ecdsa key pair.
Your identification has been saved in /etc/ssh/
Your public key has been saved in /etc/ssh/
The key fingerprint is:
4c:9a:68:
The key's randomart image is:
+--[ECDSA 256]---+
| . |
| o . |
| . o + E |
| . . B + . . |
| o o o S o + |
| = . . o . |
| + o . |
| o ... . |
| .o. |
+-----------------+
ec2:
ec2: #######
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: 2048 f8:bf:48:
ec2: 1024 1d:a6:d9:
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #######
Additionally, it would be better to report the entire public key portion so that keys could be programmatically included by the users of the instance.
Changed in cloud-init (Ubuntu): | |
status: | Triaged → Fix Released |
Changed in cloud-init: | |
status: | Fix Committed → Fix Released |
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