Comment 4 for bug 1671844

Revision history for this message
Lee Trager (ltrager) wrote :

The comment is always the last part of public key. The websocket returns a short version of the public key separated by a ; with for the comment. The comment may be cropped see [1]

For example my public SSH key is

/+AMKZ0lK0LiU0j2Y6Vz4u8uGAFKOa6bfs7xL25z9wG7cdg6SLfuxoJVu1x+OklMfapLApuAPflkOM3BW3+L5BMqn7odbFuQv3UwDfNCOxoJgOJCfbzazkBvT8qDWsCfV0hgsC3fLrH2ptlbTmXI5RBgiR7OI2HkiA8Sy2CVeN1WMn+SuP7oadfqCj0Q11ycPnLwa9LhDrNOcXuMNexjGyQRg9HDKwbtkYCW8CI0ByHRZMFjuBGJb7sgePMUdox22HVMCZYX1qR6KroqE/R+HM4Ivz0oOPQPcRLjPvP4iEynN58HwVS7zJPGhfWQ3jN3+phrurNpvOQ2Jl2QNw== <email address hidden>

The websocket returns that as
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACA&hellip; <email address hidden>

I wonder if we should give something more useful such as the full key so users could copy it. Or do what github does and just show the fingerprint.

[1] https://git.launchpad.net/maas/tree/src/maasserver/models/sshkey.py#n47
[2] https://screenshots.firefox.com/YelKdq1UXhxlai9F/github.com