All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Connect to instances

Last updated:2021-08-04 11:26:31

You can connect to an instance from the console through WebVNC. If a public IP address is assigned to the instance, you can also connect to the instance through SSH or remote connection. However, only a single instance can be connected from the console at a time.

Prerequisites

Before the connection, make sure that the instance is in Running state. If the instance is in Stopped state, you must start it first.

Connect to a Linux KEC instance

The default username is ubuntu for Ubuntu systems and root for all the other Linux systems. If you forget your password, you can reset the password in the console.

WebVNC connection

  1. Log in to the KEC console.

  2. In the list of KEC instances, find the Linux KEC instance to which you want to log in and click Connect Instance in the Operation column.

  3. Enter your password and press Enter. Only password-based login is supported in WebVNC connection mode.

SSH login

Before you log in to an instance by using SSH, you must assign a public IP address to the instance add port 22 in inbound security group rules. For more information about security group settings, see Configure a security group.

The following example describes how to use the Windows-based PuTTY client to connect to a Linux KEC instance.

1. Password-based login

1) Download and run the PuTTY client.

2) In the PuTTY Configuration window, click Session at the top of the tree on the left and set the following parameters:

- **Host Name (or IP address)**: Enter the public IP address of the KEC instance.

- **Port**: Use the default port number **22**.

- **Connection type**: Select **SSH**.

![putty login.png](http://fe-frame.ks3-cn-beijing.ksyun.com/project/cms/2bf99a1fe27f291749a456861a1f24fd)

3) Click Open.

4) Enter your password and press Enter. The following figure shows the interface after successful login.

![Successful root login.png](http://fe-frame.ks3-cn-beijing.ksyun.com/project/cms/a52f5c345e9be66c65e86be1a4f3ea11)
2. Key-based login

1) Download and run the PuTTYgen and PuTTY clients.

2) Use the PuTTYgen client to convert the key file that is downloaded from the KEC console into a .ppk private key file.

Select **RSA** for **Type of key to generate** and click **Load**.

![image.png](http://fe-frame.ks3-cn-beijing.ksyun.com/project/cms/e792139580ad02573a6bb07c70ae75cc)

Select **All Files** and then the private key file to be converted. In the dialog box that appears, click **OK**.

Click **Save private key**.

![image.png](http://fe-frame.ks3-cn-beijing.ksyun.com/project/cms/8d5fb58f6ecc9f2c0550d4dcf85839ee)

In the dialog box that appears, click **Yes**.

Specify the name of the .ppk private key file and click **Save**.

3) Use the PuTTY client to log in to the KEC instance.

Choose **Connection** > **SSH** > **Auth**, click **Browse**, and then select the .ppk private key file that is generated.

Click **Session** and set the relevant parameters. For more information, see the "Password-based login" section.

Click **Open**. Enter your password and press **Enter**. The interface that appears after successful login is the same as that in the "Password-based login" section.

Connect to a Windows KEC instance

The default username is kingsoft for Windows systems. If you forget your password, you can reset the password in the console.

WebVNC connection

  1. Log in to the KEC console.

  2. In the list of KEC instances, find the Windows KEC instance to which you want to log in and click Connect Instance in the Operation column.

  3. In the window that appears, click Ctrl+Alt+Delete under Key Operations in the upper-right corner.

    If the screen stays black, it is hibernating. Press any key to wake it up.

  4. Enter the password and press Enter.

Remote desktop connection

Before you use remote desktop connection, you must add port 3389 to inbound security group rules. For more information about security group settings, see Configure a security group.

The following example describes how to use Remote Desktop Connection in Windows to connect to a Windows KEC instance.

  1. Click Start in your local Windows operating system.

  2. Enter mstsc in the search box on the task bar and press Enter. Find the Remote Desktop Connection application.

  3. Click this application, enter the public IP address of the KEC instance, and then click Connect.

  4. Enter the username kingsoft and password, and click OK.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback