Help Center > > FAQs> Passwords and Key Pairs> Passwords> What Should I Do If I Cannot Log In to My ECS Using the Reset Password?

What Should I Do If I Cannot Log In to My ECS Using the Reset Password?

Updated at:Sep 10, 2020 GMT+08:00

Scenarios

A new password obtained using the one-click password reset function cannot be used to log in to the ECS. To troubleshoot this issue, see this section.

Ensure that the one-click password reset plug-ins are not blocked by security software. Otherwise, the one-click password reset function cannot be used.

Windows

Perform the following operations to locate the fault:

  1. Check whether port 80 in the outbound direction of the security group is permitted.

    1. Log in to management console.
    2. Select the target ECS to switch to the page providing details about the ECS.
    3. On the Security Groups tab, check whether port 80 in the outbound direction of the security group is bypassed.

      By default, the Protocol and Port Range/ICMP Type values in the outbound direction are both Any, indicating that port 80 is bypassed.

  2. Check whether DHCP is enabled in the VPC of the ECS.

    Under Network, click Virtual Private Network. Switch to the page providing details about the target VPC, click Subnets, and check the DHCP status.

  3. If both the security group and DHCP are properly configured but one-click password reset still fails to take effect, use the original password to log in to the ECS.

  4. Check whether password reset plug-ins CloudResetPwdAgent and CloudResetPwdUpdateAgent have been installed on the ECS. To do so, perform the following operations:

    Start the Task Manager and check whether cloudResetPwdAgent and cloudResetPwdUpdateAgent are displayed on the Services tab. If no, the one-click password reset plug-ins have not been installed on the ECS.

    To install the plug-ins, see Installing One-Click Password Reset Plug-ins.

    Figure 1 Successful plug-ins installation

Linux

Perform the following operations to locate the fault:

  1. Check whether port 80 in the outbound direction of the security group is permitted.

    1. Log in to management console.
    2. Select the target ECS to switch to the page providing details about the ECS.
    3. On the Security Groups tab, check whether port 80 in the outbound direction of the security group is bypassed.

      By default, the Protocol and Port Range/ICMP Type values in the outbound direction are both Any, indicating that port 80 is bypassed.

  2. Check whether DHCP is enabled in the VPC of the ECS.

    Under Network, click Virtual Private Network. Switch to the page providing details about the target VPC, click Subnets, and check the DHCP status.

  3. If both the security group and DHCP are properly configured but one-click password reset still fails to take effect, use the original password to log in to the ECS.

    • If the original password is invalid, enter the single-user mode and reset the password.

      For details, see Troubleshooting Resetting the Password of User root in the Single-User Mode.

    • If the original password can be used, perform the following operations for further check:
      1. Use the original password to log in to the ECS.
      2. Run the curl http://169.254.169.254/openstack/latest/resetpwd_flag command to check whether the one-click password reset function is available.
        • If the return value is true, the password can be reset with a few clicks.
        • If other values are returned, the password cannot be reset or the network malfunctions.

  4. Check whether CloudResetPwdAgent has been installed.

    1. Check whether the CloudResetPwdAgent directory is available in the root directory on the ECS.
    2. Run the following command to check the CloudResetPwdAgent status:

      service cloudResetPwdAgent status

      If the command output is "unrecognized service", the one-click password reset plug-ins have not been installed on the ECS.

      To install the plug-ins, see Installing One-Click Password Reset Plug-ins.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel