Why am I unable to log in to an instance by using the root account?
Execute the vi /etc/ssh/sshd_config command to check whether PermitRootLogin is set to yes in the file. Logging in to the instance as the root user is allowed only when PermitRootLogin is set to yes.
What ports need to be opened to log in to an instance?
Linux instances use the TCP protocol and port 22 for login by default, while Windows instances use the TCP protocol and port 3389 by default. You can also modify the default login port to reduce the risk of being scanned and attacked by malicious software, thereby improving the security of the instance. Why can't I connect to my instance even after opening the port?
Check whether the port is correctly configured and whether the firewall has been disabled.
What do I do if I forget the instance password and want to recover it?
How do I resolve the issue where a user account on a Windows instance becomes locked due to multiple login attempts with incorrect passwords?
When you connect to an ECS instance via Remote Desktop, multiple login attempts with incorrect passwords may result in an error message as shown in the following figure: "The user account has been locked".
Issue analysis
- The account is locked by the system's security mechanism due to excessive login attempts with incorrect passwords.
- If the login attempts are not made by the user, it may be caused by someone attempting a brute-force attack.
- Generally, this error can be resolved, and normal login will be restored after the specified account lockout duration has elapsed.
Solution
- Use VNC to access the instance in the console.
- In the search box, enter "Run", double-click to open it, and enter "gpedit.msc" to open the Local Group Policy Editor.
- Expand the following path in sequence: Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy. On the right panel, double-click "Account lockout threshold". We recommend that you set this threshold to "0", which means no limit, or increase the threshold.
- The settings will take effect immediately. You do not need to restart the instance.
Can multiple users remotely log in to the same ECS instance at the same time via VNC?
"Users" are divided into two types: VolcanoEngine accounts and operating system users. The limits vary for different types of users. Specifically:
- For VolcanoEngine accounts, multiple authorized accounts (primary accounts or IAM users) are allowed to log in to the instance at the same time, with no limit on the number of accounts. When multiple accounts are logged in, they can see the same console and share all actions.
- For operating system users, only one user is allowed to log in to the instance at the same time.
Can multiple users remotely log in to the same ECS instance at the same time via the ECS Terminal?
"Users" are divided into two types: VolcanoEngine accounts and operating system users. The limits vary for different types of users. Specifically:
- For VolcanoEngine accounts, a single primary account (including its IAM users) can open up to 100 remote connections at the same time.
- For operating system users:
- For Linux operating systems, multiple users can log in simultaneously via different browser tabs.
- For Windows operating systems, whether multiple users can log in at the same time is restricted by the operating system configuration. If multiple users cannot log in simultaneously, the remote connection of the previous user will be automatically disconnected when a new user logs in.
Can I log in to an ECS instance via a mobile phone?
Can I log in to an instance via a self-built web page in an external system?
Why does the remote connection to my instance frequently disconnect?
- After successful login via VNC, if there is no interactive operation in your management terminal window within 180 seconds, the connection will be automatically disconnected.
- Remote connection may also disconnect when resources are overloaded. We recommend that you refer to the following table to troubleshoot resource usage.
Why cannot I access an instance from the public network?
To allow an instance to be accessed from the public network or to access the public network, an EIP must be associated with the instance. Access is only possible through this EIP and the opened service ports.
tip
You can also indirectly associate an EIP with the instance by using products such as a NAT gateway. For more information, see Internet access. What do I do if the session is automatically disconnected after being inactive for a certain period of time after I log in to the instance via SSH?
After you log in to an ECS instance via SSH, you can execute the following command as the root user to disable automatic session disconnection.
How do I set VNC full-screen display?
VNC does not support full-screen display. By default, VNC logs directly in to the host. Unlike ECS Terminal's remote desktop, VNC can only display the entire page of the host in a fixed size. If you need full-screen display, we recommend that you use ECS Terminal's remote desktop for login.
Will the ECS instance shut down after I close the remote connection?
No, it will not. If you do not shut down the instance, the instance remains in the Running state.