Connecting to the Cluster

Introduction:

To connect to the SUNYIT Computer Science cluster, you will need to SSH in. If you are looking to connect with a Windows box, you will need to have an SSH client. These directions will be using PuTTY but can be followed along with other SSH clients. For a copy of PuTTY or directions of using PuTTY or Secure Shell please use the following links.

Cluster Connection Procedures:


1. SSH into node1. This will create your home directory. The very first time, you'll need to log out and then log back in, or manually change over to your home directory



2. Create your ssh key with ssh-keygen. For entering the file in which to save the key, just hit enter so that default locations are used.



3. Change directory to .ssh/ and copy your ssh public key, the contents of id_rsa.pub, into the file authorized_keys.



4. Next, use ssh-agent bash followed by ssh-add to add yourself to ssh so that you won't have to type your password to log into each node. ssh-add will prompt you for the password you created with ssh-keygen.



5. Manually ssh to all the nodes. They should not prompt your for a password, but just to accept their ssh host key fingerprint, which you will manually have to type yes to do.



6. Create a .mpd.conf file in your home directory defining MPD_SECRETWORD.



7. Create a mpd.hosts file in your home directory listing all the hosts' names, one per line.



8. Boot the mpd ring with your desired number of hosts, mpdboot -n numofhosts. It this doesn't work on the first try you might need to change permissions on the .mpd.conf file.



9. Compile your programs with mpicc.



10.Run your desired commands with mpiexec -n numofhosts filename .



11. When done, shutdown the mpd ring using mpdallexit.


Email us with questions or concerns.