You can run remote commands to perform O&M operations on an instance without having to log on to the instance.


Background information

  • Remote commands can only be run on a single instance at a time.
  • You must use Cloud Assistant to run remote commands, and remote commands consume the quota of Cloud Assistant commands. For more information about Cloud Assistant and its limits, see Cloud Assistant overview.


  1. Log on to the ECS console.
  2. In the left-side navigation pane, choose Instances & Images > Instances.
  3. In the top navigation bar, select a region.
  4. Click the ID of the target instance to go to the details page of the instance.
  5. In the left-side navigation pane, click Remote Commands.
  6. On the page that appears, click Send Remote Commands.
  7. In the Send Remote Commands dialog box that appears, perform the following operations:
    1. Select a command type.
      • Linux instances: Shell is selected by default.
      • Windows instances: Select Bat or PowerShell.
    2. Specify whether to retain commands.
      Note You can view the retained commands on the Cloud Assistant page and run these commands repeatedly. For more information about how to use Cloud Assistant to run remote commands on ECS instances, see Run commands.
    3. Enter a command in the Command Content section.
      • The command must be able to return results of a single execution. Interactions with returned information are not allowed.
      • For more information about shell commands, see View instance configurations.
    4. Click Run.
      • You can click Stop Task to cancel running a command during execution.
      • After the execution is complete, you can view the response in the Command Output section.
      Note After an execution is complete, you can enter another command in the Command Content section to run it.