cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

🐛 SSH Cert creation "invalid character 'u' looking for beginning of value" when expired

Open bjornfro opened this issue 1 year ago • 3 comments

Sometimes, I believe when the JWT has expired you get this error message when trying to generate a SSH short lived certificate:

cloudflared access ssh-gen --hostname XYZ invalid character 'u' looking for beginning of value

Which means no SSH cert is created. Happens on both Linux and Mac. Tested with version 2024.6.0.

Doing an "rm .cloudflared/*" solves the issue.

The JWT has this content:

more .cloudflared/xyz.cloudflareaccess.com-org-token not-available

bjornfro avatar Jun 12 '24 06:06 bjornfro

Same issue on my side

maxnrb avatar Jul 08 '24 17:07 maxnrb

Same issue for me - deleting .cloudflared worked

itsvyle avatar Aug 23 '24 08:08 itsvyle

Just ran into this bug again on the latest cloudflared (2025.4.0). Deleting ~/.cloudflared fixed it, but this shouldn't have required human intervention.

itzoey avatar Apr 16 '25 20:04 itzoey