All Documents
High Performance ComputingHigh Performance Computing
-
User Guide
- Overview
- Typical Applications in the ECS Scenario
- Best Practices in the ECS Scenario
- Typical Applications in the BMS Scenario
- Change History
-
HPC-S² User Guide
- Overview
- Getting Started
- User Guide
-
FAQs
- Why Am I Still Charged After I Deleted My Cluster?
- What Can I Do If a Compute Node Cannot Be Found or Fails to Be Added to a Cluster?
- If I Fail to Deploy a Cloud Server in a Cluster, Can I Deploy It in Another Cluster?
- What Can I Do If I Receive Error Message "Insufficient EIP quota"?
- What Can I Do If the Maximum Number of Clusters Has Been Reached?
- What Can I Do If I Receive Error Message "master node cannot reached" But the Master Node is Running?
- Change History
Help Center>
High Performance Computing>
User Guide>
Typical Applications in the ECS Scenario>
Configuring Password-free Login to an ECS
Updated at: May 09, 2022 GMT+08:00
Configuring Password-free Login to an ECS
Scenarios
This section describes how to configure an ECS to enable password-free login to it.
Background Information
$: indicates performing an operation as a common user.
#: indicates performing an operation as an administrator.
Run the sudo su command to switch from a common user to an administrator.
Prerequisites
An ECS has been created successfully and an EIP has been bound to it.
Procedure
- Use PuTTY and a key pair to log in to an ECS in the cluster.
- Run the following command to disable user logout upon system timeout:
- Copy the ECS private key file (for example *.pem) to the .ssh directory and name it as id_rsa.
$ cd ~/.ssh
$ mv *.pem id_rsa
- Run the following command to configure permissions of the key file:
- Run the following command to query the host name:
- Run the following command to add the private network IP address and name of the host:
An example command is as follows:
192.168.0.1 ecs-ff-0001
- 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:
For example, if the hostname is hostname1, run the following commands:
$ ssh localhost
$ ssh hostname1
Parent topic: Typical Applications in the ECS Scenario