Remotely connect to a server through SSH on the Alibaba Cloud app
You can use the Secure Shell (SSH) tool to directly connect to Alibaba Cloud hosts, such as Elastic Compute Service (ECS) instances. You can also manually add other hosts. These include other Alibaba Cloud hosts, such as simple application servers, and non-Alibaba Cloud hosts from providers such as Huawei Cloud, Tencent Cloud, AWS, or physical machines. The Alibaba Cloud app includes customizable keyboard shortcuts in its SSH tool, such as Tab for auto-completion. These shortcuts help you manage host resources, run commands, and deploy applications. This topic uses an Alibaba Cloud ECS instance as an example to demonstrate how to use the SSH tool.
Prerequisites
For Linux servers, ensure that SSH traffic is allowed on the default port 22 and that the logon account is not disabled.
For Windows servers, ensure that SSH remote connection is enabled, SSH traffic is allowed on the default port 22, and the logon account has remote logon permissions.
Procedure
Open the SSH Tool using the search box or the product list.
Direct access via the search box
Open the Alibaba Cloud app and click the Console tab at the bottom.
In the search box at the top, enter SSH Tool.
In the search results, click SSH Tool.
From the feature list
Open the Alibaba Cloud app and click the Console tab at the bottom.
In the feature list at the top, click SSH Tool.
Click Add Host or the + icon in the upper-right corner. Then, click Select from My ECS.
NoteFor hosts other than Alibaba Cloud ECS instances, click Manually Add Host.
At the top of the page, click the region and select the region where your target ECS instance is located, such as China (Hong Kong). Select the ECS instance and click OK.
Connect to the host using a key or password.
Connect with a key (default)
Enter the Logon Name and select Key. Enter the SSH Port (default is 22) and click Confirm Connection.
NoteThe Key Security Token field is optional. Enter a token only if one is configured for your key.
Connect with a password
Click the
icon to switch to the Log on with Password method.Enter the Logon Name, Password, and SSH Port (the default is 22). Then, click Confirm Connection.
Click Confirm.
Enter the whoami command to verify the connection. If the output is root, the SSH connection is successful.
NoteAfter you establish an SSH connection, you can click the
icon in the upper-right corner of the terminal to adjust settings such as Custom Keyboard, Character Encoding, and Font Size.
References
For more information, see Common commands for Linux.