天蓬老师2017-04-17 16:56:54
The question is not very clear
Local vm virtual machine. You can use single-user mode to reset the root password
Cloud server, you can go to the host console to reset the root password
Digression:
It is said that you can use the ssh public key to log in to the server instead of using a password
PHP中文网2017-04-17 16:56:54
ftp If I remember correctly, there seems to be a configuration file with records in it. I have found it through this method before.
大家讲道理2017-04-17 16:56:54
If it is a local server, use liveCD to copy the files and reinstall the system.
If it is a cloud computing server, check your mailbox and you may find the username and password. There is really no way to contact customer service for a solution.