如果你忘记了CP gaia expert密码,那么使用下面的方法重置。
思路就是利用现有用户的密码,覆盖expert的密码,因为CP里面的密码都是加密的,所以,你即使有可以SSH 进gaia,但是密码也无法被反向解密的,所以只能覆盖。
Follow these steps:
Connect to CLI on Gaia machine (over SSH, or console).
Log in to CLISH with the user that has an 'adminRole' (user with 'monitorRole' does not have sufficient permissions).
Find the hash of the CLISH password:
HostName> show configuration
One line near the end will look similar to this:
set user USERNAME password-hash $1$vCbd0F3d$FjawgvrKBN.4Ed27hTPpB0
Set the hash of the CLISH password to be the hash of the Expert mode password:
R75.40 / R75.40VS / R75.45 / R75.46 / R75.47:
HostName> set expert-password hash HASH_of_CLISH_PASSWORD
Based on our example:
HostName> set expert-password hash $1$vCbd0F3d$FjawgvrKBN.4Ed27hTPpB0
R76 / R77 and above (dash was added in the syntax):
HostName> set expert-password-hash HASH_of_CLISH_PASSWORD
Based on our example:
HostName> set expert-password-hash $1$vCbd0F3d$FjawgvrKBN.4Ed27hTPpB0
Save the configuration:
HostName> save config
Set new Expert mode password:
R75.45 and above:
HostName> set expert-password
Enter current expert password: type the current CLISH password
Enter new expert password:
Enter new expert password (again):
R75.40 and R75.40VS:
HostName> set expert-password plain
Enter current expert password: type the current CLISH password
Enter new expert password:
Enter new expert password (again):
Save the configuration:
HostName> save config
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。