Logging In to a Cluster

Last updated: 2019-11-12 18:37:19

PDF

Logging in Using a Remote Login Tool (on Windows)

This section uses Xshell as an example to describe how to log in to an EMR cluster with a password using a remote login tool on Windows.

Applicable OS

Windows

Logging in with a Password

  1. Download PuTTY (a remote login tool on Windows) here and install it.
  2. Launch the PuTTY client, enter the following in the PuTTY Configuration window, and click Open to create a session as shown below:
    • Host Name: The public IP address of the EMR cluster, which can be viewed on the list page.
    • Port: The port number of the CVM instance, which has to be 22. (Please make sure that the port 22 in the CVM instance is opened. For more information, see Security Group and Network ACL).
    • Connect type: Select SSH.
  3. In the PuTTY session window, enter the obtained admin account and press Enter.
  4. Enter the obtained login password and press Enter to log in as shown below:

Log in Using SSH (on Linux or macOS)

This section describes how to log in to an EMR cluster using SSH on Linux or macOS.

Applicable OS

Linux or macOS

Logging in with a Password

  1. On macOS, launch Terminal and run the following command. On Linux, run the following commands directly:
    ssh <username>@<hostname or IP address>
    • username: The admin account, such as root.
    • hostname or IP address: The public IP address or custom domain name of your EMR cluster.
  2. Enter the obtained password (only the input but not the output is displayed here) and press Enter to log in.