"a device key does not allow this"
This computer signed in with a device key, and the key was not given what the command asks for. Do it where the account signs in with its password, VK ID, Yandex ID or a code from a phone, or make a key with the right you need.
The error comes as one of these texts:
- "a device key does not allow this: do it where the account signs in with its password, VK ID or Yandex ID";
- "this device key may not see the plan, so it cannot send visitors to a computer on the internet".
The exit code is 5.
What to do
-
Payments, the password, the email, sign-in methods, keys and devices are never open to a key: run the command on a computer where you signed in with your password, VK ID, Yandex ID or a code from a phone.
-
Only a key made with
--protectioncan protect addresses (proximamp access,proximamp service access), and only a key with--usagecan open a tunnel to a computer on the internet (--hostwith a public address), if your plan allows it. -
A key's rights don't change: make a new one with the right you need, sign in with it on the server and revoke the old one:
proximamp keys create --name build-server --usage # a new key, here with the --usage rightproximamp login --key-stdin < key.txt # on the serversudo proximamp service uninstall --yes # if the service signed in with the key: remove itsudo proximamp service install -c proximamp.yml --key-stdin < key.txt # and install it with the new keyproximamp keys # the keys' ids, where you ran createproximamp keys revoke <id> # the old key, there tooThe reinstalled service comes back on its old addresses only if
proximamp.ymlnames them inaddress:(the config file); before the uninstall,sudo proximamp service statusshows the current ones.In PowerShell, give the key from a file like this (install the service in an administrator's terminal):
Get-Content key.txt | proximamp login --key-stdinproximamp service uninstall --yesGet-Content key.txt | proximamp service install -c proximamp.yml --key-stdin
If that didn't help
Click "Ask a question" at the bottom of the page and include the exact error text and the output of proximamp version.