Set up Alibaba Instance - Ubuntu 16.04

See this video: https://www.youtube.com/watch?v=gTmoyVFoGks

If you choose “set the password later” when you set up, you need to reset the password.
Go to instance detail, insert the new password for root, restart the instance, then you can login using SSH.

To prevent message: “sudo: unable to resolve host [abcdefg]” once run sudo, you need to edit hosts file

1
root@abcdefg:~# sudo nano /etc/hosts

add the hostname to that file, like this line bellow

1
2
127.0.0.1       localhost
127.0.0.1 abcdefg

complete file example:

1
2
3
4
5
6
7
127.0.0.1       localhost
127.0.0.1 abcdefg

#The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

© 2017 - Muh Rizal
Powered by Hexo