This article describes how to connect to an ECS instance on a mobile device. Depending on the operating system of your instance, select the required method as follows.

  • Connect to a Linux instance: This example uses SSH Control Lite to describe how to connect to a Linux instance on an iOS device, and JuiceSSH to describe how to connect to a Linux instance on an Android device.
  • Connect to Windows instances: This example uses Microsoft Remote Desktop to describe how to connect to a Windows instance on an iOS or Android device.

Connect to a Linux instance

Prerequisites
  • The instance is Running .
  • The instance has a public IP address and is accessible from the Internet.
  • You have set the logon password for the instance. If the password is lost, you can reset the instance password.
  • The security group of the instance has the the following security group rules:
    Network type NIC Rule direction Authorization policy Protocol type Port range Authorization type Authorization object Priority
    VPC  No configuration required Inbound Allow SSH(22) 22/22 Address Field Access 0.0.0.0/0 1
    Classic  Internet
  • You have downloaded and installed the appropriate app:
    • For an iOS device, install SSH Control Lite.
    • For an Android device, install JuiceSSH.
Procedure

For iOS devices, see use SSH Control Lite to connect to a Linux instance. In this example, a user name and password are used for authentication.

For Android devices, see use JuiceSSH to connect to a Linux instance. In this example, a user name and password are used for authentication.

Use SSH Control Lite to connect to a Linux instance
  1. Start SSH Control Lite, and tap Hosts.
  2. Tap the + icon in the upper left corner of the Hosts page.
  3. In the action sheet, tap Connection.
  4. On the Connection page, set the connection information and tap . The following connection information is required:
    • Name: Specify the Host name. DocTest is used in this example. .
    • Protocol: Use the default value SSH.
    • Host: Type the public IP address of the Linux instance to connect to.
    • Port: Type the port number for SSH protocol. 22 is used in this example.
    • Username: Type root for the user name.
    • Password: Type the logon password of the instance.
  5. In the tool bar, tap Remote Controls.
  6. On the Remote Controls page, tap the + icon in the upper left corner to create a remote connection session. New remote is used in this example.
    The following figure shows Steps 1 through 6. 

  7. On the New remote page, tap Host1.
  8. In the action sheet, tap Bind.
  9. Select the new Linux instance. In this example, select DocTest.
  10. On the New remote page, tap Done to switch it to the Edit mode, and then tap DocTest.
  11. In the action sheet, tap Connect.
    The following figure shows Steps 7 through 11.

  12. In the action sheet, select Yes, Once or Yes,  Permanently. Once the connection is successful, the indicator in front of DocTest turns green.
  13. On the New remote page, tap DocTest.
  14. In the action sheet, tap Console to open Linux instance console.
    The following figure shows Steps 12 through 14:

Use JuiceSSH to connect to a Linux instance
  1. Start JuiceSSH, and tap Connections.

  2. Under the Connections tab, tap the + icon.

  3. On the New Connection page, add the connection information and then tap the icon. The following connection information is required:
    • Nickname: Specify the name of the connection session. DocTest is used in this example.
    • Type: Use the default value SSH.
    • Address: Type the public IP address of the Linux instance to connect to.
    • To setI Identity, follow these steps:
      1. Tap Identity, and tap New in the drop-down list.
      2. On the New Identity page, add the connection information and then tap the  icon. The following connection information is required:
        • Nickname: Optional.DocTest is used in this example.
        • Username: Type root for the user name.
        • Password: Tap SET(OPTIONAL), and type the logon password of the instance.

    • Port: Type the port number for SSH protocol. In this example, 22 is used.

  4. Confirm the message, and tap ACCEPT.

  5. (Optional) For a first-time connection, the app will show a prompt of helpful tips. Tap OK - I’VE GOT IT!.

If you are successfully connected to the Linux instance, the following screen is displayed.



Connect to Windows instances

In this section, Microsoft Remote Desktop is used as an example to describe how to use an app to connect to a Windows instance on a mobile device.

Prerequisites

  • The instance is Running.
  • The instance has a public IP address and is accessible from the Internet.
  • You have set the logon password for the instance. If the password is lost, you must reset the instance password.
  • The security group of the instance has the following security group rules:
    Network type NIC Rule direction Authorization policy Protocol type Port range Authorization type Authorization object Priority
    VPC  No configuration required Inbound Allow RDP(3389) 3389/3389 Address field access 0.0.0.0/0 1
    Classic  Internet
  • You have downloaded and installed Microsoft Remote Desktop.
    • For iOS devices, download the app from iTunes.
    • For Android devices, download the app from Google Play.
Procedure

To connect to a Windows instance by using Microsoft Remote Desktop, follow these steps:

  1. Start RD Client. In the navigation bar, tap the + icon.

  2. On the Add New page, select Desktop.

  3. On the Edit Desktop page, type the connection information and tap Save.  The following connection information is required:
    • PC Name: Type the public IP address of the Windows instance to connect to.
    • User Account: Type the account name administrator and the logon password of the Windows instance.

  4. On the Remote Desktop page, tap the icon of a Windows instance.

  5. On the confirmation page, confirm the message and tap Accept.

If you are successfully connected to the Windows instance, the following screen is displayed.