Skip to content

Check ssh key format for 'paste' option.  #17

Closed
@bryank-cs

Description

@bryank-cs

Please add some logic to the 'paste' option of webroot/panel/account.php that checks for the correct format. A regex seems a bit unwieldy because of the number of prefixes. Checking the return of ssh-keygen -l -f /dev/stdin might be more future proof. This would prevent users from copying the key material without the ssh-rsa or similar at the beginning.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions