All Documents
Current Document

Content is empty

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


SSH connection guide

Last updated:2020-05-08 22:30:38

In addition to performing KMR cluster and job operations through the console, you can also access to the cluster, perform management tasks or monitor the status of the cluster through SSH.

Before starting the connection, please make sure that the cluster is bound to EIP, and correct firewall rules have been set for the master node (blocking the access from public network by default). Please refer to Kingsoft Cloud official documentation: Firewall Configuration.

Add SSH key for the cluster

KMR cluster supports only SSH key authentication. Before you use SSH, you need to add SSH key for the cluster.

  1. Generate SSH-2 RSA keys with the key generation tool, and save private and public keys
    image.png A Windows user can use PuTTYgen.exe tool to generate keys. A Linux user can use ssh-keygen –t rsa to generate. By default, keys are generated under ~/.ssh/ directory, and public keys are stored in the file ~/.ssh/ With ssh-keygen, the user can specify the public key directory by itself.

  2. Open KMR console, and click “SSH Key” button image.png

  3. Click “Create Key”, paste the information in public key file generated in step 1 into the dialog box, and click "Add"

  4. Select the key created and click "Load to Cluster" button to load the key into the cluster. You can load the key to multiple clusters at the same time. Now, the key has been loaded.

    Access to cluster through SSH

  5. Open KMR console, enter Cluster Details, and expand details of the master node. You can access to the cluster through public network (if EIP is bound) or internal network IP address.
  6. Import private key generated in Add SSH Key to Cluster.
  7. Specify IP and port to connect KMR master node, and connect to the cluster with the user name “root”.
  8. Mutual SSH trust has been configured for the master data and core node. You can view IP address of core node on the console, and log on each core node through the master node.
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen