• Virtual Private Cloud

vpc
  1. Help Center
  2. Virtual Private Cloud
  3. User Guide
  4. Security
  5. Security Group Configuration Examples
  6. Enabling Specified IP Addresses to Remotely Access ECSs in a Security Group

Enabling Specified IP Addresses to Remotely Access ECSs in a Security Group

  • Example scenario:

    To prevent ECSs from being attacked, you can change the port number for remote login and configure security group rules that allow only specified IP addresses to remotely access the ECSs.

  • Security group configuration:

    To allow IP address 192.168.20.2 to remotely access Linux ECSs associated with a security group over the SSH protocol and port 22, you can configure the following security group rule.

    Protocol

    Direction

    Port/Range

    Source

    SSH (22)

    Inbound

    22

    IPv4 address, IPv4 CIDR block, or ID of another security group

    For example, 192.168.20.2