cli
cli copied to clipboard
hcloud: unable to authenticate (unauthorized) with correct token
I have two contexts
- production
- development
I have a token for each context - they are correct and of 64bit length
- development =
YSSH... - production =
K3vt...

Non-working context
-
I set
HCLOUDtoYSSH... -
I am in the correct contect
$ hcloud context list ACTIVE NAME * development production -
Run
hcloud server list$hcloud server list hcloud: unable to authenticate (unauthorized)
--> I would expect this to work
I even tried creating a new token, same result
Working context
-
I set
HCLOUDtoK3vt... -
I switch the contect
$ hcloud context list ACTIVE NAME development * production -
Run
hcloud server list$hcloud server list ID NAME STATUS IPV4 IPV6 PRIVATE NET DATACENTER xxxxxx ttrss running xx.xxx.xxx.xxx xxxx:xxx:xxxx:xxx::/64 - hel1-dc2
--> works as expected
Version
$ hcloud version
hcloud 1.30.3