cloudflare / cloudflare/cloudflared

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

Open
#1,271 3 comments 2 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.