This topic describes how to use a username and password to connect to a Linux instance from a Windows, Linux, Mac OS X, Android, or iOS device.
Prerequisites
- An ECS instance is created.
- A logon password is set for the instance.
- A public IP address or an elastic IP address (EIP) is associated with the instance.
- The instance is in the Running state.
- A security group rule is added to the security group to which the instance belongs
to allow traffic on the corresponding port. For more information, see Add security group rules.
Network type NIC type Rule direction Action Protocol type Port range Priority Authorization type Authorization object VPC N/A Inbound Allow SSH (22) 22/22 1 IPv4 CIDR Block 0.0.0.0/0 Classic network Public
Background information
You can use one of the following methods based on the operating system of your device
to connect to a Linux instance by using a username and password:
Use a username and password for authentication on a Windows device
The following section describes how to use a username and password to connect to a Linux instance. PuTTY is used in this example.
Use a username and password for authentication on a Linux or Mac OS X device
Use a username and password for authentication on an Android or iOS device
For more information, see Connect to a Linux instance from a mobile device.