按照正常的流程,在KVM控制檯點擊stop按鈕之後,再選擇Root password modification重置密碼,發現依然報錯:
Failed to reset root password (739102)
Additional information: 992800002 VPS is currently running.
Please stop the VPS before attempting to modify root password.
解決方法很簡單。
我們進入 KiwiVM 後臺之後,讓 VPS 處於開機狀態(running),然後點擊左側菜單的 Root shell – basic,然後輸入如下命令:
echo "root:mypassword" | chpasswd
最好是自己打一下。
注意空格,其中“root:mypassword”之間的冒號是英文冒號,且中間沒有空格。“root”就是用戶名,不需要改動,“mypassword”就是你要設置的密碼,根據自己情況進行填寫。
輸入之後回車,即可完成密碼的修改。之後我們就可以通過 SSH 客戶端登陸我們的 VPS 了。