This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:connect [2012/03/02 16:26] kevin [Connecting to the CHPC] |
guide:connect [2026/06/18 19:45] (current) ccrosby [Connecting to the CHPC] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Connecting to the CHPC ===== | + | ====== Connecting to the CHPC ====== |
| - | The CHPC hosts //three// systems of supercomputers: | + | The CHPC hosts a supercomputer comprising: |
| - | * SUN | + | * 1008 regular compute nodes with 24 cores and 128 GiB of RAM each; |
| - | * Westmere cluster (Sun & Dell) | + | * 360 regular computes nodes with 24 cores and 64 GiB of RAM each; |
| - | * Nehalem cluster | + | * 4 large memory nodes with 56 cores and 1TiB of RAM each; |
| - | * Harpertown cluster | + | * 9 [[guide: |
| - | * M9000 SMP | + | |
| - | * Nvidia Quadro visualization node | + | |
| - | * GPU cluster (Supermicro) | + | |
| - | * 9x Nvidia C2070 " | + | |
| - | * 15x Nvidia C1060 " | + | |
| - | * IBM | + | |
| - | * e1350 cluster | + | |
| - | * Blue Gene/P | + | |
| - | Each system has a single **login node** which is connected to the Internet and allows connections to the individual supercomputers of each system. | ||
| - | ==== Logging In ==== | + | =====Host Name===== |
| - | Connections to the login nodes of the CHPC machines is via the **ssh** protocol. To connect use | + | All these systems are accessed |
| - | ssh username@login-node.chpc.ac.za | + | ===== Logging In ===== |
| - | + | ||
| - | where **// | + | |
| - | === Hostnames === | + | Connection to the login node of the CHPC cluster is via the **ssh** protocol. |
| + | < | ||
| + | ssh username@lengau.chpc.ac.za | ||
| + | </ | ||
| + | where // | ||
| - | The hostnames and IP addresses for all CHPC login nodes are listed below. | ||
| - | | **System** | ^ Host Name ^ IP Number | | ||
| - | ^ SUN | Primary address | sun.chpc.ac.za | 41.193.29.30 | | ||
| - | ^ IBM Blue Gene | Primary address | bgp.chpc.ac.za | 41.193.82.60 | ||
| - | ^ GPU | Primary address | gpu.chpc.ac.za | ?????????? | | ||
| + | ===== Dedicated scp.chpc.ac.za ===== | ||
| + | A dedicated node, '' | ||
| + | < | ||
| + | scp src.tar.gz username@scp.chpc.ac.za: | ||
| + | </ | ||
| - | Note that if you are connecting from UCT or the CSIR please use the dedicated address for those subnets, otherwise use the primary address. | ||
| - | === Connecting from the CSIR === | + | ===== Transferring Files ===== |
| - | | **System** | ^ Host Name ^ IP Number | | + | **Large data sets should be transferred by means of [[howto: |
| - | ^ SUN | ...connecting from CSIR only | chpcsun.csir.co.za | 146.64.21.24 | | + | |
| - | ^ IBM Blue Gene | ...connecting from CSIR only | ????????? | ???????? | + | |
| - | ^ GPU | ...connecting from CSIR only | ????????? | ?????????? | | + | |
| + | You can also use scp or sftp to transfer files to or from your home directory on the CHPC systems. | ||
| + | < | ||
| + | scp src.tar.gz username@scp.chpc.ac.za: | ||
| + | </ | ||
| + | to copy the file // | ||
| - | === Connecting from UCT === | + | < |
| + | scp src.tar.gz username@scp.chpc.ac.za:/ | ||
| + | </ | ||
| - | | **System** | ^ Host Name ^ IP Number | | ||
| - | ^ SUN | ...IP address for UCT only | | 196.13.250.16 | | ||
| - | ^ IBM Blue Gene | ...IP address for UCT only | | ?????????? | ||
| - | ^ GPU | ...IP address for UCT only | | ????????? | | ||
| + | If you would like a more user-friendly method, consider [[https:// | ||
| + | **Note:** use '' | ||
| - | ==== Transferring Files ==== | ||
| - | Use scp or sftp to transfer files to or from your home directory on the CHPC systems. | + | =====Recommended: |
| - | scp src.tar.gz username@sun.chpc.ac.za: | + | The **best way** to connect via **ssh** is to create //ssh keys// which authenticate you instead of your password. |
| - | to copy the file //src.tar.gz// to your work directory on the SUN cluster. | + | First create your private and public keys on your main work computer. |
| + | < | ||
| + | ssh-keygen -t dsa | ||
| + | </ | ||
| + | This creates two new files in your //.ssh// directory | ||
| + | |||
| + | | //id_dsa// | your **private** key | | ||
| + | | // | ||
| + | |||
| + | It is the latter file that you need to add to the // | ||
| + | |||
| + | From a recent Linux distribution you can simply do this :- | ||
| + | <code bash> | ||
| + | ssh-copy-id username@lengau.chpc.ac.za | ||
| + | </ | ||
| + | From older Unix setups you might have to do this :- | ||
| + | < | ||
| + | cat ~/ | ||
| + | </ | ||
| + | And the next time you ssh or scp to the CHPC login node you won't have to use your password! | ||
| + | |||
| + | ====NOTE: ssh FILE PERMISSIONS==== | ||
| + | |||
| + | Notice that you need to change the permissions of the //.ssh// directory and the // | ||
| + | file on the login nodes to make them private and readable by you only before ssh will use the new public key. | ||
| + | |||
| + | < | ||
| + | chmod -R g-rwx,o-rwx ~/.ssh | ||
| + | </code> | ||
| + | |||
| + | **You also need to make sure your home directory does not have write '' | ||
| + | |||
| + | < | ||
| + | ls -ld ~ | ||
| + | drwxr-xr-x 19 user user 4096 Aug 15 12:01 / | ||
| + | </ | ||
| + | |||
| + | which is done with | ||
| + | < | ||
| + | chmod 0750 ~ | ||
| + | </ | ||
| + | to make your entire home directory private; or | ||
| + | < | ||
| + | chmod 0755 ~ | ||
| + | </ | ||
| + | to allow other users to view your files. | ||
| + | |||
| + | |||
| + | ====ssh error: REMOTE HOST IDENTIFICATION HAS CHANGED!==== | ||
| + | |||
| + | This error occurs if the keys used by the host are different from that used last time you connected to it. | ||
| + | |||
| + | You can use | ||
| + | |||
| + | ssh-keygen -R badhost | ||
| + | |||
| + | to remove all keys associated with the host //badhost// from your '' | ||
| + | |||
| + | This is safe to do because the new host key entry will be added back in next time you ssh in. | ||
| + | |||
| + | |||
| + | If you want to look at or edit the '' | ||
| + | |||
| + | For example, after logging in: | ||
| + | |||
| + | <code bash> | ||
| + | cd .ssh/ | ||
| + | ls | ||
| + | authorized_keys | ||
| + | </ | ||
| + | |||
| + | |||
| + | Once you have changed into the '' | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Connecting from MS Windows ===== | ||
| + | |||
| + | ====Cygwin==== | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | For first-timers there is a nice introduction at [[http:// | ||
| - | ==== MS Windows ==== | + | ====MS Windows |
| - | Should you be using a MS Windows | + | Should you prefer |
| to connect to the CHPC we suggest you download and install the open source | to connect to the CHPC we suggest you download and install the open source | ||
| [[wp> | [[wp> | ||
| and | and | ||
| - | [[wp> | + | [[wp> |
| ^ Windows Application | ^ Windows Application | ||
| | PuTTY | ssh | [[http:// | | PuTTY | ssh | [[http:// | ||
| | WinSCP | | WinSCP | ||
| + | | MobaXterm | ||
| + | | Git Bash | Whole unix environment including ssh | [[https:// | ||
| - | ==== ssh keys ==== | + | ====ssh keys==== |
| - | The best way to connect via **ssh** is to create //ssh keys// which authenticate you instead of your password. | + | It is **strongly recommended** that you use ssh keys to connect to the CHPC. To generate and configure putty-ssh to use keys please see: |
| - | First create your private and public keys on your main work computer (which we assume is a desktop or laptop computer running Linux) | + | * [[https:// |
| + | * [[http:// | ||
| - | | + | To generate and configure **Git** to use ssh keys please see: |
| - | + | ||
| - | This creates two new files in your //.ssh// directory | + | |
| - | | //id_dsa// | your **private** key | | + | |
| - | | //id_dsa.pub// | the corresponding **public** key | | + | |
| - | It is the latter file that you need to add to the // | ||
| - | From a recent Linux distribution you can simply do this :- | + | ====Blocked User Accounts==== |
| - | ssh-copy-id username@login-node.chpc.ac.za | + | It may be that your account is blocked because of multiple failed logins. |
| - | + | Check if that is so via [[https:// | |
| - | From older Unix setups you might have to do this :- | + | |
| - | cat ~/.ssh/id_dsa.pub > ssh username@login-node.chpc.ac.za | + | It is important to note that if you had more than 6 failed login attempts, your account will be blocked and either you will have to log a call on https://users.chpc.ac.za/ |
| - | + | ||
| - | And the next time you ssh or scp to the CHPC login node you won't have to use your password! | + | |
| - | (Notice that you need to change the permissions of the //.ssh// directory and the // | ||
| - | file on the login nodes to make them private and readable by you only before ssh will use the new public key.) | ||