last login of VM

leila

New Member
Apr 26, 2023
13
0
1
I have a Linux VM that I forgot the password for.
How can I find out who was the last login?
 
Proxmox does not keep track of logins to VMs. There are many guides on the internet about resetting the root password for Linux machines that also work for VMs.
Yes, I reset the password, but before that I needed to know when was the last login.
Thank you for your guidance.
 
Yes, I reset the password, but before that I needed to know when was the last login.
You can check afterwards by looking at the logs inside the VM. If someone else logged in, they cannot be trusted. Maybe setup logging to a remote system to prevent tampering with the logs in the future?
Maybe I'm not understanding your question correctly? Can you explain the situation a bit more and elaborate about why you need the last login?