Changes the SSH and/or Webmin password on some system
This command can be used to change the root password for SSH or Webmin on a managed system. The Unix password can be set with the
--ssh-pass parameter, while the Webmin password can be changed with
--webmin-pass. To configure Webmin to check the Unix password when root logs, use the
When the command is run, it will update
/etc/webmin/miniserv.users on the selected machine to make the changes. Cloudmin's authentication information for the system will also be updated to match.
Alternately, you can configure the system to accept root logins via an SSH key setup in Cloudmin with the
--ssh-key flag, followed by a key ID.
Registered keys can be fetched from the
list-ssh-keys API command. This will update the
/root/.ssh/authorized_keys file on the virtual system.
If you have multiple SSH keys configured in Cloudmin, the
--add-ssh-key flag can be used to add an extra key that is allowed to login to the system. Conversely,
--remove-ssh-key can be used to disallow access by a key.
If you have created a virtual system for a customer, changing the root password when you are ready to hand it over is a good idea. Be aware that for Xen systems, if the password is changed on the system directly (perhaps using the passwd command), Cloudmin will be no longer able to login via SSH to change it,
or even to check the system's status.
For Xen and KVM systems, the password used for access to the graphical console can be changed with the
--graphical-pass flag followed by a new password. By default this is the same as the SSH password, or a random string if no password was set at creation time.
Command Line Help
Changes the SSH or Webmin passwords for a managed system. cloudmin passwd-system --host name [--ssh-pass password | --ssh-key id] [--webmin-pass password | --webmin-same] [--graphical-pass password] [--add-ssh-key id | --remove-ssh-key id]