cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
8.56k stars 755 forks source link

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

Open bjornfro opened 1 month ago

bjornfro commented 1 month ago

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

maxnrb commented 2 weeks ago

Same issue on my side