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.
KMR cluster supports only SSH key authentication. Before you use SSH, you need to add SSH key for the cluster.
Generate SSH-2 RSA keys with the key generation tool, and save private and public keys
A Windows user can use PuTTYgen.exe tool to generate keys. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 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/id_rsa.pub. With ssh-keygen, the user can specify the public key directory by itself.
Open KMR console, and click “SSH Key” button
Click “Create Key”, paste the information in public key file generated in step 1 into the dialog box, and click "Add"