I'm having an issue authentication my API calls with my Proxmox instance. I looked through the Proxmox VE API Authentication wiki however I'm having trouble progressing through the 401 Unauthorized error.
If I try to hit the API via
I receive a 401 Unauthorized with body:
My username is set to
To create the API token, I went to
- User:
- Token ID: arbitrary token identifier
- Privilege Separation: unchecked
On the Proxmox host (v7.4-19):
Is there anything obvious that is incorrect in my workflow, or are there recommended next steps for debugging the 401 Unauthorized error?
If I try to hit the API via
Code:
curl -k -d 'username=root@pam' --data-urlencode 'password=xxxxxxxxx' https://XX.XX.XX.XX:8006/api2/json/access/ticket
I receive a 401 Unauthorized with body:
Code:
{"data":null}
My username is set to
root@pam
and my password is set to the UUID secret copied from the Proxmox UI.To create the API token, I went to
Datacenter
--> pve
, then Permissions
--> API Tokens
. I clicked add and created:- User:
root@pam
- Token ID: arbitrary token identifier
- Privilege Separation: unchecked
On the Proxmox host (v7.4-19):
Code:
# /var/log/pveproxy/access.log
"POST /api2/json/access/ticket HTTP/1.1" 401 13
# /var/log/syslog
pve pvedaemon[1670]: authentication failure; rhost=::ffff:XX.XX.XX.XX user=root@pam msg=Authentication failure
Is there anything obvious that is incorrect in my workflow, or are there recommended next steps for debugging the 401 Unauthorized error?