Project

General

Profile

Bug #21554

Bad parsing of SSH Public Key field ...

Added by Ashley Brandwood over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

When trying to add multiple public keys to a user using the "SSH Public Key" field, it fails to create the authorized_keys file if any key public key does not start "ssh-" ...

For example if you put these three keys in the web-gui:
ssh-ed25519 XXXXXXXXXXX...XXXXX user
ecdsa-sha2-nistp256 XXXXXXXXX...XXXXX user
ssh-rsa XXXXXXXXXX...XXXXXX user

will result in an authorized_keys file that looks like:

ssh-ed25519 XXXXXXXXXXX...XXXXX userecdsa-sha2-nistp256 XXXXXXXXX...XXXXX user
ssh-rsa XXXXXXXXXX...XXXXXX user

Note how the ecdsa key is not seperated out to a new line.

If the ecdsa key is put first, then it will parse correctly.

This will be an issue for anyone trying to use multiple keys that include ECDSA.

Associated revisions

Revision 4db4231d (diff)
Added by William Grzybowski over 4 years ago

fix(gui): parse correctly ecdsa-sha2-nistp256 keys Ticket: #21554

History

#1 Updated by Ashley Brandwood over 4 years ago

I meant, it fails to create the authorized_keys file correctly ... the file is created, but neither the ecdsa key, nor the key immediately before it, will work.

#2 Updated by Bonnie Follweiler over 4 years ago

  • Assignee set to William Grzybowski

#3 Updated by William Grzybowski over 4 years ago

  • Status changed from Unscreened to Screened
  • Target version set to 9.10.3

#4 Updated by William Grzybowski over 4 years ago

  • Status changed from Screened to Resolved
  • Priority changed from No priority to Nice to have

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore over 4 years ago

  • Target version changed from 9.10.3 to 11.0

#6 Updated by Vaibhav Chauhan about 4 years ago

  • Target version changed from 11.0 to 11.0-RC

Also available in: Atom PDF