Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
9.7 KiB
Logging In to a Windows ECS from a Linux Server
Scenarios
This section describes how to log in to a Windows ECS from a Linux server.
Prerequisites
- The target ECS is running.
- The ECS must have an EIP bound.
- Access to port 3389 is allowed in the inbound direction of the security group which the ECS belongs to.
- Data can be exchanged between the login tool and the target ECS. For example, the default port 3389 is not blocked by the firewall.
- RDP has been enabled on the target ECS. By default, RDP has been enabled on the ECSs created using a public image. For instructions about how to enable RDP, see Enabling RDP.
Procedure
To log in to a Windows ECS from a local Linux server, use a remote access tool, such as rdesktop.
- Run the following command to check whether rdesktop has been installed on the ECS:
rdesktop
If the message "command not found" is displayed, rdesktop is not installed. In such a case, obtain the rdesktop installation package at the official rdesktop website.
- Run the following command to log in to the ECS:
rdesktop -u username -p password -g resolution EIP
For example, run rdesktop -u administrator -p password -g 1024*720 121.xx.xx.xxx.
Table 1 Parameters in the remote login command Parameter
Description
-u
Username, which defaults to Administrator for Windows ECSs
-p
Password for logging in to the Windows ECS
-f
Full screen by default, which can be switched using Ctrl+Alt+Enter
-g
Resolution, which uses an asterisk (*) to separate numbers. This parameter is optional. If it is not specified, the remote desktop is displayed in full screen by default, for example, 1024*720.
EIP
EIP of the Windows ECS to be remotely logged in. Replace it with the EIP bound to your Windows ECS.
Enabling RDP
- Log in to the Windows ECS using VNC.
For details, see Logging In to a Windows ECS Using VNC.
- Click Start in the task bar and choose Control Panel > System and Security > System > Remote settings.
The System Properties dialog box is displayed.
- Click the Remote tab and select Allow remote connections to this computer.
- Click OK.
