You can remotely manage your Linux instances from anywhere by connecting from a mobile device. This topic describes how to connect to a Linux instance by using password authentication, with examples for iTerminal on iOS and JuiceSSH on Android.
Prerequisites
A Linux instance is created.
A logon password is set for the instance. If you have not set a password for the instance or if you have forgotten the password, you must reset the password for the instance. For more information, see Reset the logon password of an instance.
A public IP address or an elastic IP address (EIP) is associated with the instance.
The instance is in the Running state.
The following rules are added to the security group to which the instance belongs. For more information, see Add a security group rule.
Network type
Rule direction
Action
Port range
Priority
Authorization object
VPC
Inbound
Allow
SSH (22)
1
0.0.0.0/0
Connect to a Linux instance (iTerminal for iOS)
This example uses password authentication.
Download iTerminal.
Start iTerminal.
Tap SSH at the top of the page.
Enter the connection information, and then tap Connect.
Nickname: Enter a name for the host. In this example, the name is DocTest.
Host Name or IP Address: Enter the static public IP address or EIP of the Linux instance.
Port: Enter the port number 22.
User Name: Enter the instance's username, such as root or ecs-user.
Password: Enter the logon password of the instance.
Select Save to Server List, and then tap Connect.
You are now connected to the Linux instance. After a successful connection, the terminal displays the following logon information:
Welcome to Alibaba Cloud Elastic Compute Service ! Updates Information Summary: available 8 Security notice(s) 3 Important Security notice(s) 5 Moderate Security notice(s) Run "dnf upgrade-minimal --security" to apply all upd fer to: https://help.aliyun.com/document_detail/416274.html Last failed login: Mon Mar 6 12:36:04 CST 2023 from There were 14050 failed login attempts since the last [test@iZ2ze3gb5xxx xxx xxxZ ~]$
Connect to a Linux instance (JuiceSSH for Android)
This example uses password authentication.
Install JuiceSSH.
Start JuiceSSH.
Tap Manage Connections.
Tap the
icon.Enter the connection information, and then tap the
icon.Nickname: Enter a name for the connection. In this example, the name is DocTest.
Type: Retain the default value SSH.
Address: Enter the static public IP address or EIP of the Linux instance.
Configure the Identity.
Tap Identity and select New from the drop-down list.
Enter the following information and tap the
icon. Nickname: Optional. You can set a name for the identity to help you manage it. In this example, the name is DocTest.
Username: Enter the instance's username, such as root or ecs-user.
Password: Tap UPDATE/CLEAR and enter the logon password of the instance.
Set Password (optional, tap UPDATE / CLEAR to set or clear the password) and Private Key (optional, tap SET (OPTIONAL) to set the private key), and then tap the ✓ button in the upper-right corner to save the identity configuration.
Port: Enter the port number 22.
In the ADVANCED SETTINGS section, keep the default value 22 for Port, and then tap the checkmark icon in the upper-right corner to save the connection configuration.
Confirm the message and tap ACCEPT.
(Optional) On your first connection, a prompt for settings such as font configuration may appear. Confirm the information and tap OK - I’VE GOT IT!.
You are now connected to the Linux instance.
Last failed login: Tue Aug 29 10:42:15 CST 2017 from xxx.xxx.xxx.xx on ssh:notty
There were 8 failed login attempts since the last successful login.
Last login: Tue Aug 29 09:56:28 2017 from 96.25.155.168
Welcome to Alibaba Cloud Elastic Compute Service !
[root@xxx ~]#