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… <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
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
/+AMKZ0lK0LiU0j 2Y6Vz4u8uGAFKOa 6bfs7xL25z9wG7c dg6SLfuxoJVu1x+ OklMfapLApuAPfl kOM3BW3+ L5BMqn7odbFuQv3 UwDfNCOxoJgOJCf bzazkBvT8qDWsCf V0hgsC3fLrH2ptl bTmXI5RBgiR7OI2 HkiA8Sy2CVeN1WM n+SuP7oadfqCj0Q 11ycPnLwa9LhDrN OcXuMNexjGyQRg9 HDKwbtkYCW8CI0B yHRZMFjuBGJb7sg ePMUdox22HVMCZY X1qR6KroqE/ R+HM4Ivz0oOPQPc RLjPvP4iEynN58H wVS7zJPGhfWQ3jN 3+phrurNpvOQ2Jl 2QNw== <email address hidden>
The websocket returns that as AAAADAQABAAACA& hellip; <email address hidden>
ssh-rsa AAAAB3NzaC1yc2E
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 /screenshots. firefox. com/YelKdq1UXhx lai9F/github. com
[2] https:/