Updated on 2024-09-29 GMT+08:00

Connecting to a Server Routed to a Black Hole

Scenario

When your server is under a traffic flooding attack, a black hole will be triggered to block all accesses from the Internet. You can connect to a server which a black hole has been triggered for through an ECS.

Prerequisites

  • You have purchased at least one public IP address.
  • The username and password for logging in to an ECS have been obtained.
  • The username and password for logging in to a server which a black hole has been triggered for have been obtained.

Constraints

Ensure the ECS can be accessed and in the same region as the server.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click and choose Computing > Elastic Cloud Server.
  4. Log in to the ECS that can be accessed and in the same region as the server which a black hole has been triggered for.

    Select a login method and log in to the ECS.

  5. Table 1 describes how to connect to a server which a black hole has been triggered for.

    Table 1 Server connection

    ECS OS

    Blackholed Server OS

    Connection Method

    Windows

    Windows

    Use MSTSC to log in to the server which a black hole has been triggered for.

    1. Search for mstsc in the ECS and click it to open the Remote Desktop Connection dialog box.
    2. Click Show Options in the displayed dialog box.
    3. Enter the EIP and username (Administrator by default) of the server which a black hole has been triggered for.
    4. Click OK and enter the login password as prompted to log in to the server.

    Linux

    Use a remote login tool, such as PuTTY or Xshell, to log in to the server.

    Linux

    Windows

    1. Install a remote connection tool, such as rdesktop.
    2. Run the following command to log in to the server which a black hole has been triggered for.

      rdesktop -u Username -p Password -g Resolution EIP bound to the server which a black hole has been triggered for

    Linux

    Run the following command to log in to the server which a black hole has been triggered for.

    ssh EIP bound to the server which a black hole has been triggered for

Follow-up Operation

Once you have connected your ECS to a server in the black hole state, you can transfer files to the server and can make whatever configuration changes are necessary.