如何修改VNC密码
首先登录web终端并切换到root权限
su root
输入密码
1234
VNC密码跟web控制台密码一样所以在修改VNC密码之前 需要先修改web控制台的密码
WEB控制台密码修改完成后编辑VNC配置文件
路径:/etc/kvmd/vncpasswd
默认密码配置文件内容如下
# This file describes the credentials for VNCAuth. The left part before arrow is a passphrase
# for VNCAuth. The right part is username and password with which the user can access to KVMD API.
# The arrow is used as a separator and shows the relationship of user registrations on the system.
#
# Never use the same passwords for VNC and IPMI users. This default configuration is shown here
# for example only.
#
# If this file does not contain any entries, VNCAuth will be disabled and you will only be able
# to login in using your KVMD username and password using VeNCrypt methods.
# pa$$phr@se -> admin:password
admin -> admin:admin
对应关系为:
admin -> admin:admin
密码 -> 账号:密码
这里只需要把2个密码字段改为你的web控制台密码即可
比如web控制台的密码为:passwd 那么这里的配置文件就需要修改为
passwd -> admin:passwd
使用nano命令打开配置文件
nano /etc/kvmd/vncpasswd
修改完成后配置文件如下:
# This file describes the credentials for VNCAuth. The left part before arrow is a passphrase
# for VNCAuth. The right part is username and password with which the user can access to KVMD API.
# The arrow is used as a separator and shows the relationship of user registrations on the system.
#
# Never use the same passwords for VNC and IPMI users. This default configuration is shown here
# for example only.
#
# If this file does not contain any entries, VNCAuth will be disabled and you will only be able
# to login in using your KVMD username and password using VeNCrypt methods.
# pa$$phr@se -> admin:password
passwd -> admin:passwd
修改完成后按CTRL+X 然后在按Y 继续按回车键保存配置文件即可
最后重启VNC服务即可使用新的密码登录vnc控制台
systemctl restart kvmd-vnc