How do you reset OnApp password via command line?
- Log in to OnApp Cloud Control Panel using SSH:
- Go to the directory where your Control Panel is installed:
- To generate a random password, run the following rake task:
- To set a predefined password, run:
Make sure there are no spaces in brackets. Upon success, you will get a “Password successfully changed to 'new_password'” message. If the operation could not be completed, you will get the list of errors.
# rake onapp:password[onappsupport] [2014-07-16 14:41:45 -0400] Password successfully changed to 'CyYEkRSbOio1' # rake onapp:password[onappsupport,6ka1ljm2en4gy7tws5f3] [2014-07-16 14:45:28 -0400] Password successfully changed to '6ka1ljm2en4gy7tws5f3'