Skip to content

How do I let other users access and use remote instances?

0

I'm using AWS for a College Class Project. It requires me to run a STREAM benchmark code. I created an account for someone else in my group and they are able to SSH into the host node using a key pair that I generated for them. I'm able to run the STREAM code just fine, but, when they go to run the STREAM code, they get

ORTE was unable to reliably start one or more daemons. This usually is caused by:

  • not finding the required libraries and/or binaries on one or more nodes. Please check your PATH and LD_LIBRARY_PATH settings, or configure OMPI with --enable-orterun-prefix-by-default

  • lack of authority to execute on one or more specified nodes. Please verify your allocation and authorities.

  • the inability to write startup files into /tmp (--tmpdir/orte_tmpdir_base). Please check with your sys admin to determine the correct location to use.

  • compilation of the orted with dynamic libraries when static are required (e.g., on Cray). Please check your configure cmd line and consider using one of the contrib/platform definitions for your system type.

  • an inability to create a connection back to mpirun due to a lack of common network interfaces and/or no route found between them. Please check network connectivity (including firewalls and network routing requirements).



ORTE does not know how to route a message to the specified daemon located on the indicated node:

my node: ip-10-0-14-37 target node: 10.0.10.21

This is usually an internal programming error that should be reported to the developers. In the meantime, a workaround may be to set the MCA param routed=direct on the command line or in your environment. We apologize for the problem.

When I attempt to SSH into one of the remote nodes while logged into their account I also get

ssh 10.0.10.21 Warning: Permanently added '10.0.10.21' (ECDSA) to the list of known hosts. Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Even if I specify the private key location it wants a passphrase, which there is none, I still get permission denied:

ssh -i .ssh/private key (removed to protect privacy) 10.0.10.21 Warning: Permanently added '10.0.10.21' (ECDSA) to the list of known hosts. Enter passphrase for key '.ssh/private key.pem': Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

I'm at a loss. The project is due soon, and I won't be able to run the scripts at the times it needs to be run. I need this person to have access.

asked 2 years ago173 views

2 Answers
1

It seems like you're facing a few issues with user access and permissions on your EC2 instances. Let's address these step by step:

  1. SSH access to compute nodes: The error message suggests that the other user can access the host node but not the compute nodes. This is likely because the SSH key for the compute nodes hasn't been properly set up for the new user.

  2. Running the STREAM code: The error message indicates that there might be issues with the environment setup or permissions for running MPI jobs.

To resolve these issues:

  1. For SSH access to compute nodes:

    • Make sure the same SSH key used for the host node is also authorized on the compute nodes for the new user.
    • Add the user's public key to the ~/.ssh/authorized_keys file on each compute node.
    • Ensure the permissions on the .ssh directory and authorized_keys file are correct (700 for .ssh directory, 600 for authorized_keys file).
  2. For running the STREAM code:

    • Check that the new user has the correct environment variables set, particularly PATH and LD_LIBRARY_PATH.
    • Ensure the user has the necessary permissions to access and execute the required binaries and libraries.
    • Verify that the user has write permissions in the necessary directories, especially /tmp.
  3. General permissions:

    • Make sure the new user account has the correct group memberships and file system permissions to access all necessary resources.
    • Consider using sudo to grant the user elevated permissions if needed, but be cautious with this approach.
  4. Network configuration:

    • Verify that the security groups and network ACLs allow communication between the host node and compute nodes for the new user.

If these steps don't resolve the issue, you might want to consider using a shared account with proper sudo privileges instead of individual user accounts, although this is generally less secure. Alternatively, you could look into using AWS ParallelCluster with a directory service for easier multi-user management in HPC environments.

Remember to always follow security best practices and your institution's guidelines when setting up multi-user environments in AWS.
Sources
Manage system users on your Amazon EC2 Linux instance - Amazon Elastic Compute Cloud
How can I securely share SSH access to an EC2 instance? | AWS re:Post
Multiple user access to clusters - AWS ParallelCluster
Setting up Scenario 1: Individual server environments - Setting Up Multi-User Environments in AWS (for Classroom Training and Research)

answered 2 years ago

EXPERT

reviewed 2 years ago

0
Accepted Answer

I figured it out after many attempts. The issue was how I had generated the key pair. I had used PUTTYGen to create the key pair. I removed the user, then re-added the user. Then I generated the key pair using ssh-keygen. Copying the private key onto my local machine and attempting to ssh into the Host Node worked. And then from the Host Node, I could ssh into all the remote nodes, as well as run the STREAM benchmark.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.