Closed ghost closed 2 years ago
Hi, cv4pve-pepper --host=192.168.0.100 --api-token USER@REALM!TOKENID=UUID
News?
hi, sorry, but i cannot connect with token, maybe i don't make user rights correctly. i will try today, and reply.
cv4pve-pepper --host=192.168.0.100 --api-token USER@REALM!TOKENID=UUID
when i create user, i can set PAM or PVE, where you get REALM?. which user i need to create to use token?
i able to run only in this mode:
./cv4pve-pepper --host=192.168.1.50 --username=root@pam --password=mypassword--vmid 105 --viewer /usr/bin/remote-viewer
in another cases i tried with token:
./cv4pve-pepper --host=192.168.1.50 --api-token 'user@pam!TOKENID=a992c-da60-4db8-925d' --vmid 105 --viewer /usr/bin/remote-viewer
Problem connection! no such token 'TOKENID' for user 'user@pam'
cv4pve-pepper --host=192.168.0.100 --api-token USER@REALM!TOKENID=UUID
when i create user, i can set PAM or PVE, where you get REALM?. which user i need to create to use token?
REALM is pam or pve
i able to run only in this mode:
./cv4pve-pepper --host=192.168.1.50 --username=root@pam --password=mypassword--vmid 105 --viewer /usr/bin/remote-viewer
in another cases i tried with token:
./cv4pve-pepper --host=192.168.1.50 --api-token 'user@pam!TOKENID=a992c-da60-4db8-925d' --vmid 105 --viewer /usr/bin/remote-viewer Problem connection! no such token 'TOKENID' for user 'user@pam'
Remove the single quote ' or use double quote "
With and without quotes:
$ ./cv4pve-pepper --host=192.168.1.50 --username=user@pam --password=mypassword --api-tok
en="user@pam!tokenid=a992c-da60-4db8-925d" --vmid 105 --viewer /usr/bin/remote-viewer
bash: !tokenid=a992c: event not found
$ ./cv4pve-pepper --host=192.168.1.50 --username=user@pam --password=mypassword --api-tok
en=user@pam!tokenid=a992c-da60-4db8-925d --vmid 105 --viewer /usr/bin/remote-viewer
bash: !tokenid=a992c: event not found
user@pam!tokenid=a992c-da60-4db8-925d change user with your user
i want to create a new user with limited rights, and give access only to VM! because i tried to use your software.
Hello,
.\cv4pve-pepper.exe --api-token Viewer@PVE!e3093149-2efa-455d-ad74-aa54611d3a50 --host=192.168.1.7:8006 --vmid 119 --viewer 'C:\Program Files\VirtViewer v9.0-257\bin\remote-viewer.exe'
is returning the error
Problem connection! no tokenid specified
I have tried it as --api-token
, --api-token=
, --api-token=''
, and --api-token ''
What am I missing here?
((This token has been removed for safety reasons))
Hello,
it appears the correct syntax is
.\cv4pve-pepper.exe --api-token 'Viewer@pve!{TOKEN_NAME}={TOKEN_SECRET}' --host=192.168.1.7:8006 --vmid 119 --viewer 'C:\Program Files\VirtViewer v9.0-257\bin\remote-viewer.exe'
Hi, you have this example:
but i want to connect with
--api-token
can you give example, how to use
--api-token
instead of--password
?