Help Center> High Performance Computing> User Guide> Typical Applications in the ECS Scenario> Configuring Password-free Login Between ECSs in a Cluster
Updated at: 2022-05-09 GMT+08:00

Configuring Password-free Login Between ECSs in a Cluster

Scenarios

This section describes how to configure an ECS cluster to enable password-free login between ECSs in the cluster. Only password-authenticated ECSs support password-free logins in a cluster.

Background Information

$: indicates performing an operation as an administrator.

#: indicates performing an operation as an administrator.

Run the sudo su command to switch from a common user to an administrator.

Prerequisites

An ECS cluster has been created and an EIP has been bound to the cluster.

Procedure

  1. Use PuTTY and a key pair to log in to an ECS in the cluster.
  2. Run the following command to disable user logout upon system timeout:

    # TMOUT=0

  3. Run the following command to add the private network IP addresses and names of all hosts in the cluster:

    # vi /etc/hosts

    Add the private network IP addresses and names of all ECSs in the cluster, for example:

    192.168.0.1 ecs-ff-0001

    192.168.0.2 ecs-ff-0002

    ..

  4. Run the following commands to log in to the node using SSH and check whether you can log in to the ECS without a password (hostname1 is the hostname):

    $ ssh localhost

    $ ssh hostname1

  5. Log in to other ECSs in the cluster and repeat steps 1 to 4.
  6. Run the following commands to check whether the tested ECSs can be logged in to from each other without a password:

    For example, if the cluster contains two ECSs and the hostname of the other ECS is hostname2, run the following commands:

    $ ssh Username@SERVER_IP

    $ ssh hostname2

close