Short lived certificates login error

Hi,

i just followed the Configure short-lived certificates · Cloudflare Zero Trust docs guide and then i get the following error:

C:\Users\Flo>ssh [email protected]
[email protected]: Permission denied (publickey).

For more precisions, i followed the guide and chose the Advanced setup: Differing usernames part “Username matches all users” correctly (i can’t see any diff between what i did and what the guide tell us to do).

The only point i got to use differing usernames is because my email is [email protected]. Some people will tell me it’s the same with and without the dot but the point is all my accounts are registered with the dot (afaik cloudflare use the login method’s email to setup permission).

Hi,

It seems you are facing a public key permission denied issue. Please double-check if the public key for your machine is correctly added to the Access Policy. Follow these steps:

  1. Log in to Cloudflare Dashboard.
  2. Go to the Access tab.
  3. Edit your access policy and ensure that your public key is added to the “Authentication” section (don’t forget to save changes).
  4. Verify that the “Short Lived Certificates” feature is enabled in the “Device Posture” subsection.

If the issue persists, consider regenerating your SSH key pair and updating the Access Policy with the new public key.