Login and Remote Access

Last updated: 2020-06-24 18:20:16

    How do I log in to a CVM instance using VNC?

    Tencent Cloud allows users to log in to a CVM instance by using the VNC web client. If you do not have a remote login client installed or cannot log in using the client, you can use a VNC web client to log in to a CVM instance. You can use the web client to log in remotely, view the CVM instance status, and perform basic instance management. For detailed instructions, refer to the following documents:

    How do I enable multi-user remote login on a Windows server?

    The Windows server supports multi-user remote login. For detailed configuration directions, refer to Setting Up Multi-user Remote Login for Windows CVMs.
    If you fail to enable multi-user remote login on a Windows server after following the directions in the document above, restart the instance and try logging in again.

    How can I log in to an instance running Ubuntu as root?

    The default user for Ubuntu is ubuntu. root is not enabled during the installation process by default. If necessary, you can enable root by following the directions below:

    1. Log in to the CVM instance using ubuntu.
    2. Run the following command to set a password for root:
      sudo passwd root
    3. Enter a password for root and press Enter.
    4. Enter the password again and press Enter.
      If the following message is displayed, the password was set successfully:
      passwd: password updated successfully
    5. Run the following command to open sshd_config:
      sudo vi /etc/ssh/sshd_config 
    6. Press i to switch to the editing mode. Find #Authentication and change the value of PermitRootLogin to yes, as shown in the following figure:

      If PermitRootLogin is commented, remove the comment marks (#).

    7. Press Esc and enter :wq to save the file and exit vi.
    8. Run the following command to restart the SSH service.
      sudo service ssh restart
    9. Refer to Logging into Linux Instances Using the Standard Login Method on how to use the following information to log in to your CVM instance running Ubuntu.
      • Username: root
      • Password: the password you set in Step 2.
        A successful login using root is shown in the following figure:

    What do I do if I cannot connect (log in) to my CVM instance after restarting it?

    This problem may have been caused by the high CPU and memory usage of your instance. For more information, please refer to the following documents:

    What do I do when I connect to my CVM instance remotely and the connection times out?

    Make sure that:

    • The instance is running.
    • The instance is associated with security groups with the necessary security group rules. For detailed information, refer to Adding Security Group Rules.
    • The instance has enabled SSH or RDP.
    • The instance has opened the corresponding ports. SSH uses port 22 by default and RDP uses port 3389 by default.

    Why is my remote connection to my Linux instance refused?

    Make sure that:

    • The instance has enabled SSH or RDP.
    • The instance has opened the corresponding ports. SSH uses port 22 by default and RDP uses port 3389 by default.

    Why do I get the invalid username or password message when I remotely connect to my Linux instance?

    Make sure that:

    • You used the correct username. The default username for most Linux distributions is root. However, Ubuntu uses ubuntu.
    • You entered your password correctly. If you forgot your password, reset it. For detailed directions, refer to Resetting Instance Passwords.

    Why do I get the invalid username or password message when I remotely connect to my Windows instance?

    Make sure that:

    • You used the correct username. The default username for Windows is Administrator.
    • You entered your password correctly. If you forgot your password, reset it. For detailed directions, refer to Resetting Instance Passwords.
    • To use a user without administrator privileges to log in, that user needs to belong to the Remote Desktop Users group.

    Does the Console support multi-user login via VNC?

    No. If one user has already logged in, other users will not be able to log in.

    What do I do if I forgot my CVM instance login password?

    You can reset your password. For detailed directions, refer to Resetting Instance Passwords.

    Why can’t I use Internet Explorer 8.0 to log in to my instances?

    The VNC web client supports Internet Explorer 10 or later. Please download the latest version of Internet Explorer.
    In addition, we recommend you use Google Chrome because the Tencent Cloud Console offers a better user experience on Google Chrome than on Internet Explorer.

    How do I log in to my Linux instance remotely?

    What do I do if I cannot connect to my Linux instance?

    If you cannot connect to your Linux instance, refer to Linux Instance Login Failures for troubleshooting instructions.
    If this problem persists, please submit a ticket.

    What do I do if I cannot connect to my Windows instance?

    If you cannot connect to your Windows instance, refer to CVM Login Failure for troubleshooting instructions.
    If this problem persists, please submit a ticket.

    What do I do if I find that my CVM instance was logged into from unusual locations?

    If you find that your CVM instance was logged into from locations you do not recognize:

    1. Double check the login time from the unusual login location and check whether you or other administrators logged in at that time.
    2. If no, follow the steps below:
      1. Reset the password immediately.
      2. Check your instance for viruses or trojans.
      3. Use security groups to limit logins to specific IP addresses.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help