最近更新时间:2023.09.01 18:01:54
首次发布时间:2021.07.09 13:31:09
使用重置密码、绑定/解绑密钥对功能前,您需要参考本节操作为实例安装密码插件。
注意
systemctl status reset-authentication
reset-authentication.service could not be found.
请根据您的Linux操作系统发行版下载并安装一键式重置密码插件。
说明
华北2(北京)地域的实例,如果未绑定公网IP,请使用私网域名进行下载。其它地域的实例请绑定公网IP后,使用公网域名进行下载。
wget http://volc-ecs.tos-s3-cn-beijing.volces.com/reset-authentication_1.0.10-0_amd64.deb
wget http://volc-ecs.tos-s3-cn-beijing.ivolces.com/reset-authentication_1.0.10-0_amd64.deb
dpkg -i reset-authentication_1.0.10-0_amd64.deb
systemctl is-active reset-authentication.service
systemctl is-enabled reset-authentication.service
wget http://volc-ecs.tos-s3-cn-beijing.volces.com/reset-authentication-1.0.10-0.x86_64.rpm
wget http://volc-ecs.tos-s3-cn-beijing.ivolces.com/reset-authentication-1.0.10-0.x86_64.rpm
rpm -i reset-authentication-1.0.10-0.x86_64.rpm
systemctl start reset-authentication.service
systemctl enable reset-authentication.service
systemctl is-active reset-authentication.service
systemctl is-enabled reset-authentication.service
wget http://volc-ecs.tos-s3-cn-beijing.volces.com/reset-authentication-1.0.4-el6.x86_64.rpm
wget http://volc-ecs.tos-s3-cn-beijing.ivolces.com/reset-authentication-1.0.4-el6.x86_64.rpm
rpm -i reset-authentication-1.0.4-el6.x86_64.rpm
service reset-authentication start
下载并安装密码插件。
C:\Program Files\Reset Authentication
目录。ps1自启动脚本
wget -Uri "http://volc-ecs.tos-s3-cn-beijing.volces.com/reset-authentication.ps1" -OutFile reset-authentication.ps1
C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts
密码插件
wget -Uri "http://volc-ecs.tos-s3-cn-beijing.volces.com/reset-authentication.exe" -OutFile reset-authentication.exe
C:\Program Files\Reset Authentication
在PowerShell中依次执行如下命令进行初始化操作。
执行如下命令,获取实例UUID。$instance_id = ((Invoke-WebRequest -URI "http://100.96.0.96/openstack/latest/meta_data.json" -UseBasicParsing).Content | ConvertFrom-Json).uuid
执行如下命令,删除Cloudbase-init注册表部分配置,使密码插件能正常运行。
若您未运行过Cloudbase-init,无需执行此命令。
Remove-ItemProperty "HKLM:\SOFTWARE\Cloudbase Solutions\Cloudbase-Init\$instance_id\Plugins" LocalScriptsPlugin
执行如下命令,启动密码插件。"C:\Program Files\Reset Authentication\reset-authentication.exe"