- Newest
- Most votes
- Most comments
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:
-
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.
-
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:
-
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).
-
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.
-
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.
-
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)
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
