Before You Begin
· You have obtained the key file of the GPU cloud server.
· The GPU cloud server has been bound to the elastic IP.
· The access rules for the security group inbound direction have been configured.
· The login tool, such as PuTTY, is normally connected to the GPU cloud server to which you want to log in. For example, the default port 22 is not blocked by the firewall.
If the client runs on a Windows operating system
If you log in to a Linux-based GPU cloud server from a Windows operating system, perform the following operations to log in to the GPU cloud server:
Method 1: Log in with PuTTY
Here, we use PuTTY as an example to describe how to log in to a GPU cloud server. Before using PuTTY to log in to a GPU cloud server, you must convert the private key file to the .ppk format.
1. Download PuTTY and PuTTYgen. PuTTYgen is a key generator that is used to create key pairs and generate a pair of public and private keys for use by PuTTY.
2. Run PuTTYgen.
3. In the Actions area, click Load and import the private key file saved when you create the GPU cloud server. Ensure that the import format is "All files (.)".
4. Click Save private key.
5. Save the converted private key locally. for example, kp-123.ppk.
6. Double-click Putty.exe to open PuTTY Configuration.
7. Choose Connection > Data, and enter the image username in the Auto-login Username field.
8. Choose Connection > SSH > Auth, click Browse in the last configuration option Private key file for authentication, and select the key converted in Step 5.
9. Click Session and enter the EIP of the GPU cloud server in the input box under Host Name (or IP Address).
10. Click Open to log in to the GPU cloud server.
Method 2: Log in with Xshell
1. Open the Xshell tool.
2. Run the following SSH command to remotely connect to the GPU cloud server in the following format.
ssh username@EIP
For example, ssh root@192.168.0.1
1. (Optional) If SSH Security Warning is displayed in the pop-up window, click Accept and Save.
2. Select Public Key and click Browse in the User Key (K) column.
3. In the User Key window, click Import.
4. Select a locally saved key file and click Open.
5. Click OK to log in to the GPU cloud server.
If the client runs on a Linux operating system
If you log in to a Linux-based GPU cloud server locally from a Linux operating system, perform the following operations to log in to the server. The following uses the private key file kp-123.pem as an example.
1. In the command line of your Linux computer, run the following command to change permissions. The path in the following command is the path of the key file.
chmod 400 /path/kp-123
2. Run the following command to log in to the GPU cloud server.
ssh -i /path/kp-123 Default username@cloud server
Assuming that the default username of the Linux-based cloud server is linux, the following command is shown as below:
ssh -i /path/kp-123 lunix@EIP
The path is the storage path of the key file.
The elastic IP address is the one bound to the GPU cloud server.