The Cloud Assistant Agent runs Cloud Assistant commands on an ECS instance. This topic describes how to use the Cloud Assistant Agent to install OpenSSH on a Windows-based ECS instance.
Prerequisites
-
The Cloud Assistant Agent is installed on the instance. For more information, see Install the Cloud Assistant Agent.
-
A public IP address is automatically assigned to the ECS instance. Alternatively, an elastic IP address (EIP) is associated with the ECS instance. For instructions on how to enable public bandwidth, see Enable public bandwidth.
-
The instance's security group must have a rule that allows inbound traffic on TCP port 22. For more information, see Add a security group rule.
NoteFor the operating system versions supported by Cloud Assistant Agent, see the Usage Limits section of Cloud Assistant Overview.
Procedure
In the upper-left corner of the page, select a region and resource group.
-
Verify the OpenSSH installation.
-
Connect to the Windows instance by using VNC.
For more information, see Connect to an instance by using VNC.
-
Click
> Windows PowerShell to open the Windows PowerShell terminal. -
Run the following command to check the network status:
NETSTAT.EXE -anoIf an entry shows that port 22 is in the LISTENING state, the service is running correctly.
PS C:\Users\Administrator> NETSTAT.EXE -ano Active Connections Proto Local Address Foreign Address State PID TCP 0.0.0.0:22 0.0.0.0:0 LISTENING 2880 TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 892 TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:3389 0.0.0.0:0 LISTENING 136 TCP 0.0.0.0:47001 0.0.0.0:0 LISTENING 4 TCP 0.0.0.0:49664 0.0.0.0:0 LISTENING 580 TCP 0.0.0.0:49665 0.0.0.0:0 LISTENING 524 TCP 0.0.0.0:49666 0.0.0.0:0 LISTENING 1116 TCP 0.0.0.0:49667 0.0.0.0:0 LISTENING 1908 TCP 0.0.0.0:49668 0.0.0.0:0 LISTENING 1824
-
-
Verify that you can connect to the Windows instance remotely by using an SSH client.
NoteUse the Windows instance's current username and password to log on.