Technology Encyclopedia Home >How to use the root user to log in to the TencentCloud Lighthouse Ubuntu system?

How to use the root user to log in to the TencentCloud Lighthouse Ubuntu system?

To log in to a TencentCloud Lighthouse Ubuntu system using the root user, you typically follow these steps:

  1. Access the Console: First, access the Tencent Cloud console and navigate to the Lighthouse service.

  2. Instance Details: Locate the specific Ubuntu instance you want to log into.

  3. Connect via SSH: Use the SSH connection option provided in the console. This usually involves copying a command that uses the ssh utility.

  4. Default Credentials: By default, the root user might not be enabled or might have a specific password set during the instance creation. If the root user is enabled, you would use:

    ssh root@<your-instance-ip>
    

    Replace <your-instance-ip> with the actual IP address of your instance.

  5. Password or Key: If a password is set for the root user, you will be prompted to enter it after running the SSH command. If SSH keys are used for authentication, ensure your private key is correctly configured.

  6. Enable Root Login (if necessary): If the root user is not enabled, you might need to log in as a regular user first and then switch to the root user using:

    sudo su -
    

    You will need the password of the regular user for this step.

Example:
If your instance IP is 123.45.67.89 and the root password is set to SecurePass123, you would log in by running:

ssh root@123.45.67.89

And then enter SecurePass123 when prompted.

Security Note: It's generally recommended to avoid using the root user directly for security reasons. Instead, use a regular user with sudo privileges to perform administrative tasks.

For enhanced security and easier management, consider using Tencent Cloud's Identity and Access Management (IAM) services to control access to your cloud resources.