搬瓦工 VPS 已关机但是无法修改root密码

按照正常的流程,在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 了。

猜你喜欢

转载自blog.csdn.net/youshaoduo/article/details/80815183