Obtaining the Password for Logging In to a Windows ECS
Scenarios
Password authentication mode is required to log in to a Windows ECS. Therefore, you must use the key file used when you created the ECS to obtain the administrator password generated when the ECS was initially installed. The administrator user is Administrator or the user configured using Cloudbase-Init. This password is randomly generated, offering high security.
You can obtain the initial password for logging in to a Windows ECS using either the management console or API. For details, see this section.
Obtaining the Password Using the Management Console
- Obtain the private key file (.pem file) used when you created the ECS.
- Log in to the management console.
- Under Computing, click Elastic Cloud Server.
- In the ECS list, select the ECS whose password you want to get.
- In the Operation column, click More and choose Get Password.
- Use either of the following methods to obtain the password through the key file:
- Click Select File and upload the key file from a local directory.
- Copy the key file content to the text field.
- Click Get Password to obtain a random password.
Obtaining the Password Using APIs
- Obtain the private key file (.pem file) used when you created the ECS.
- Set up the API calling environment.
- For details, see section "API Calling" in the Elastic Cloud Server API Reference.
- Obtain the ciphertext password.
Call the password obtaining APIs to obtain the ciphertext password of the public key encrypted using RSA. The API URI is in the format "GET /v2/{tenant_id}/servers/{server_id}/os-server-password".
For instructions about how to call an API, see section "Retrieving the Password for Logging In to a Windows ECS (Native OpenStack API)" in Elastic Cloud Server API Reference.
- Decrypt the ciphertext password.
Use the private key file used when you created the ECS to decrypt the ciphertext password obtained in step 4.
- Run the following command to convert the ciphertext password format to ".key -nocrypt" using OpenSSL:
openssl pkcs8 -topk8 -inform PEM -outform DER -in rsa_pem.key -out pkcs8_der.key -nocrypt
- Invoke the Java class library org.bouncycastle.jce.provider.BouncyCastleProvider and use the private key file to edit the code decryption ciphertext.
- Run the following command to convert the ciphertext password format to ".key -nocrypt" using OpenSSL:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot