Imagine a cluster as a super computer, made up of many smaller computers all working together. Each of these smaller computers is called a node, and together they form a powerful system capable of handling complex tasks much faster than a regular computer.
How do I connect to a cluster?
First, you need access credentials provided by the administrators of the cluster. This usually includes a username and password, sometimes supplemented by additional security measures like SSH keys.
To connect to the cluster, you'll typically use the terminal on your own computer. The terminal allows you to send commands directly to the cluster's operating system. In some cases, you may also be able to access the cluster through specific graphical user interface programs
Most clusters use Secure Shell (SSH) for remote access. You'll use the SSH protocol to securely connect to the cluster's main login node. This is like knocking on the door of the cluster's main entrance. Once connected via SSH, you'll be prompted to enter your password (or use your SSH key). This verifies your identity and grants you access to the cluster.
After logging in, you can start using the cluster's resources. You can submit jobs, run programs, access data, and perform other tasks just like you would on a regular computer. The cluster takes care of distributing the workload across its nodes to maximize efficiency.
Remember, when you're done with your work, it's important to properly log out to free up resources for others and maintain security.
To connect to a cluster, type the following command in your terminal:
ssh -X -p ##### username@cluster.address
The -X in the above command is optional, and it enables you to use graphical applications from within the cluster.
The -p specifies the port to connect to the cluster, it is an additional level of security to a cluster, as only people with the specific port number will be able to access it. It is sometimes not used.
Note that the password will be hidden, so it will look like you are not typing anything. This is a security feature of unix systems, so that not even the length of the password is revealed to anyone around you, nor saved in your history of commands.
To exit the cluster, use the following command:
exit