Scenario
This section describes how to use SSH password remotely log in to the Linux cloud server in Windows and Linux environments.
Prerequisites
· The Linux cloud server is in the Running state.
· Usually, the default username for Linux OS is "root", while the default username for CoreOS is "core".
· Port 22 has been opened to the inbound security group where the Linux cloud server is located.
· Linux cloud server firewall is not enabled or port 22 is released after it is enabled.
· If the login method is set to the key when creating a Linux cloud server, please use the reset password function to set the login password for the Linux cloud server and then follow the operations in this section. For details about how to reset the password, see Reset ECS Password in Console.
· The SSH login tool you are using (e.g. PuTTY) is properly configured and has network connectivity with the Linux cloud server. If you use a terminal on the public network to log in, you need to bind an elastic IP address to your Linux cloud server. If you use this method to log in over the Intranet, you do not need to bind the Elastic IP, such as VPN or Cloud Dedicated Access.
locally using Windows OS
If the local server is running the Windows operating system, you can log in to the cloud server as follows. The following steps take PuTTY as an example:
1. Download PuTTY and PuTTYgen at the following path https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2. Run PuTTY.
3. On the PuTTY configuration page, enter the following information:
· Host Name (or IP address): Enter the elastic IP of the Linux cloud server.
· Port: Enter 22.
· Connection Type: Select SSH.
· Saved Sessions: Set a name for the task so that it can be opened directly the next time you use PuTTY.
1. Click Window and select UTF-8 for "Received data assumed to be in which character set:" under Translation.
2. Click Open. If you log in to the server for the first time, PuTTY will display a security warning dialog asking if you want to accept the server's security certificate. Click Yes to save the certificate to local registry.
3. After establishing an SSH connection to the Linux cloud server, enter the username and password as prompted to log in to the cloud server.
locally using Linux OS
If the local server is running the Linux operating system, you can log in to the Linux cloud server by running the following command from the command line of your computer.
ssh elastic IP bound to the elastic server
Assuming that the elastic IP bound to the Linux cloud server is 9.9.9.9, the command is:
ssh 9.9.9.9