Alibaba : How to assign domain name to your ECS


To do this you need to have

  • Domain name purchased from Alibaba
  • ECS purchased from Alibaba
  • Login to Alibaba console


Following are the steps

  • Login to console
  • Press “Domains”

Following page appear.


Click Resolve. The following page will appear

Press “Add Record”.  The following page appears

Make sure the Type is “A”.

At the Host:  type www

At Value :  enter your server IP Address.

Press Confirm.


Then try go to your domain. It should appear then.

Getting Started With Alibaba ECS

So, you just subscribe to the USD4.50/month SSD Cloud Server from What next? How do you work with it? What do you need to do to allow you to access the server via ssh?

This is a all-in-one tutorial showing you how to setup your ECS starting from the “Console” at the web site up until setting up the ssh for you to log into your server.

Viewing your ECS Details

Once you purchased your server, log in to You can view your server through the ‘Console’.

Once you pressed ‘Console’, the following page will appear. This page basically shows all the available products at

Click on ‘Elastic Compute Service’.

The following page will appear, showing all your available instance at each region (if you have many). In my case I only have 1 instance, running.

Click on the instance and you will be shown the details of the instance such as its status,  its instance name, its external IP address, its configuration and  billing method as the following figure. (Note* I hid some info).

There are a few actions available for you in the yellow box above. In the ‘More’ option you have a lot more options. You can Start, Stop, Reinitialize Disk (reinstall) and reset the root password for the server.

Manage and Resetting ECS Password

If you click ‘Manage’ the following image will appear. It shows the status and overall health of your server.

Before you can work on your instance, you need to reset the password for your instance. This is essentially your root password. Click on the More button and select Reset Password.

In the following pop up, type in your new password.

Preparing for SSH access

Now, to connect to your server using ssh, you need to generate a new key pair. To do this, go to the main page where you can see the list of your instances.

At the left menu with the header ‘Elastic Compute Service’ find the menu bar Networks & Security. Under that menu, click on Key Pairs.

Since you have no key pairs yet, you need to create one by pressing on the ‘Create Key Pair’ button at the top right of your screen.

When the next screen appear, key in your preferred Key Pair Name, leave the Creation Type option as is if you don’t have an existing key pair (you may have one if you has been using ssh for other purpose’s such as for, etc). Then click ‘Ok’.

When the next screen appear asking you to download the file, make sure you ‘Save File’ and click ‘Ok’. The file will be saved in your computer. The file name will be appended with .pem.

Next you will need to assign or ‘bind’ the generated key pair to your instance. On the next screen, click on “Bind Instance”.

At the new page, select your instance and press “>” so it will be on the “Selected” side of the screen. Then press OK.

Now that the key pair has been assigned to your instance, you will need to restart your instance. To do so, go back to the list of  instance, choose More->Restart.

SSH to your ECS

You can now login to your instance via ssh.

To do so, bring up your terminal. I am on Windows 10 and I have a bash shell installed.

Make sure you know the location of the .pem file you downloaded earlier.


$ ssh -i mykey.pem
Last failed login: Wed Nov 25 15:27:52 CST 2017 from on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Mon Nov 10 11:27:00 2017 from
Welcome to Alibaba Cloud Elastic Compute Service !
[root@falcon ~]#
If you get the following error
$ ssh -i mykey.pem
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
Please contact your system administrator.
Add correct host key in /c/Users/user1/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/user1/.ssh/known_hosts:4
ECDSA host key for has changed and you have requested strict checking.
Host key verification failed.

It means you need to delete the cloud server host key in your known_hosts file.