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.