Ticket details
 

712 - Profile SSH authorization page should validate the public SSH key

What is the enhancement in mind? How should it look and feel?

The idea is to have the http://www.curseforge.com/home/repository-authorization/ page validate the SSH public key format. Users not used to SSH often pastes an invalid key, be it in wrong format, splitted across several lines or whatever. Adding a validation there will simplify troubleshooting.

Please provide any additional information below.

The page could check that the key matches the following regex and issue an error to the user when it doesn't.

^\s*ssh-(dss|rsa)\s+[0-9A-Za-z/+=]+(\s+.*)?\s*$

User When Change
Adirelle 10/10/2008 12:38:25 Changed description:
  The page could check that the key matches the following regex and issue an error to the user when it doesn't.

- ^\s*ssh-[rd]sa\s+[0-9A-Za-z/+=]+(\s+.*)?\s*$
+ ^\s*ssh-(dss|rsa)\s+[0-9A-Za-z/+=]+(\s+.*)?\s*$
Adirelle 10/06/2008 08:43:17 Create
Comments
 
You must login to post a comment. Don't have an account? Register to get one!
 

Be the first to comment!