彈性云linux系統(tǒng)通過控制臺進入單用戶重置ssh登陸密碼(適用centos8)centos6系統(tǒng)請參考:http://m.ps-sw.cn/faq/list.asp?unid=756 centos7系統(tǒng)請參考:http://m.ps-sw.cn/faq/list.asp?unid=979 通過管理中心-業(yè)務管理-服務器管理-管理,如附圖:
然后點擊“系統(tǒng)管理”--“WEB控制臺”,如附圖:
然后按如附圖點擊熱重啟服務器:
點擊以后系統(tǒng)會重啟,這時迅速按ESC鍵進入內(nèi)核界面,選擇第一個按字母e,如下圖所示: 2:修改啟動權限配置 將ro(只讀)改為:rw init=/sysroot/bin/bash 3:按“ctrl+x”進入緊急模式 4:更改密碼 輸入 chroot /sysroot/ 然后輸入passwd設置新密碼(建議明文修改) 修改完成后運行命令 touch /.autorelabel 刷新生效。 示例: chroot /sysroot/ echo 'xxxx' | passwd --stdin root (xxxx替換為要更改的新密碼) touch /.autorelabel 5:退出重啟 exit reboot
|
|||||
| >> 相關文章 | |||||
|
|
|||||