Download SSH Key Identity File
Cluster administrators can create an SSH key pair when creating a cluster in Cloud Center.
This key pair allows the administrator to log into to the clusters as
ubuntu (sudo). For details about SSH key pairs, see the AWS® documentation on Amazon
EC2 key pairs.
To allow other users of a cluster to transfer data between their local machines and the
cloud cluster, the cluster administrator must grant these users access by either creating an
SSH key pair or a password for the user. After you have granted access to the
clouduser, they can use any of the file transfer utilities described in
Transfer Data with Standard Utilities
to transfer data between their local machine and the cluster.
Create SSH Key Pair for Cluster Administrator
When you create a cluster in Cloud Center, you must provide an SSH key. Amazon® Web Services (AWS) requires an SSH key in that region to start Amazon EC2® instances. You also need this key if you want to log in as
ubuntu (sudo) to your cloud cluster machines.
If you have existing keys, select from the keys for the specified region of your AWS account. By default, Cloud Center uses the previously selected key or the first key listed alphabetically in the AWS account.
If you do not have an existing key, you can create a new one in Cloud Center. On the
Create Cloud Resource page, click Create new in the Name of
SSH Key cluster setting. In the dialog box, enter a name, and click
Download Key. Your browser might require you to identify a
location. You get a root access key file with the extension .pem. Store
this file in a safe place, because you cannot download it again. You can specify the same
SSH key for multiple clusters.
Create SSH Key Pair for Cluster Users
This section shows how a cluster administrator can create an SSH key pair for a cluster user to allow them to access the cluster. To create a password instead, see Create Password for Cluster Users.
Go to AWS portal and create an SSH key pair for your user,
clouduser. For details, see the AWS documentation on Amazon EC2 key pairs.Retrieve the public key of the SSH key pair you created for
clouduser. For details, see the AWS documentation on Retrieve the public key material.Connect to the cluster head node using SSH as the
ubuntuuser and the SSH key pair you used when you created a cluster. Use the-ioption to select the SSH private key of theubuntuuser for authentication in/path/to/private_key.pem. Replace<headnode-ip-address>with the IP address of the headnode of your cluster.ssh -i /path/to/private_key.pem ubuntu@<headnode-ip-address>
Switch to the
clouduseraccount usingsudo.Create the folder
/home/clouduser/.sshand set permissions so that onlycloudusercan access this folder.Paste the contents of the public SSH key you created for
clouduserinto the fileauthorized_keysinside this folder.Share the private key of the SSH key pair with the user who can log in as
clouduser. This is the private key of the SSH key pair you created forclouduser.
Create Password for Cluster Users
This section shows how a cluster administrator can create a password for a cluster user to allow them to access the cluster. To create an SSH key pair for the user instead, see Create SSH Key Pair for Cluster Users.
Connect to the cluster head node using SSH as the
ubuntuuser and the SSH key pair you used when you created a cluster. Use the -i option to select the SSH private key of theubuntuuser for authentication in/path/to/private_key.pem. Replace<headnode-ip-address>with the IP address of the headnode of your cluster.ssh -i /path/to/private_key.pem ubuntu@<headnode-ip-address>
Once logged in as the root user, create a password for a non-root user, say
clouduserusing this command on the terminal.sudo passwd clouduser