This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:connect [2014/12/18 15:17] dane renamed login-node to sun, and changed a ">" to a "|"... |
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 " | + | |
| - | 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 | + | All these systems are accessed via a single login node: **'' |
| - | < | + | |
| - | ssh username@sun.chpc.ac.za | + | ===== Logging In ===== |
| + | |||
| + | Connection | ||
| + | < | ||
| + | ssh username@lengau.chpc.ac.za | ||
| </ | </ | ||
| - | where **// | + | where //**'' |
| - | === Hostnames === | ||
| - | The hostnames for all CHPC login nodes are listed below. If you are within CHPC the DNS server will return RFC 1918 addresses, if you are outside you will get globally routeable addresses. | ||
| - | | **System** | ^ Host Name | | + | ===== Dedicated scp.chpc.ac.za ===== |
| - | ^ SUN | Primary address | sun.chpc.ac.za | + | A dedicated node, '' |
| - | ^ GPU | Primary address | gpu.chpc.ac.za | + | < |
| + | scp src.tar.gz username@scp.chpc.ac.za: | ||
| + | </ | ||
| + | ===== Transferring Files ===== | ||
| - | ==== Transferring Files ==== | + | **Large data sets should be transferred by means of [[howto: |
| - | Use scp or sftp to transfer files to or from your home directory on the CHPC systems. | + | 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@sun.chpc.ac.za: | + | scp src.tar.gz username@scp.chpc.ac.za: |
| </ | </ | ||
| - | to copy the file // | + | to copy the file // |
| - | ==== MS Windows ==== | + | < |
| + | scp src.tar.gz username@scp.chpc.ac.za:/ | ||
| + | </ | ||
| - | Should you be using a MS Windows computer | ||
| - | to connect to the CHPC we suggest you download and install the open source | ||
| - | [[wp> | ||
| - | and | ||
| - | [[wp> | ||
| - | ^ Windows Application | + | If you would like a more user-friendly method, consider |
| - | | PuTTY | ssh | + | |
| - | | WinSCP | + | |
| - | ==== ssh keys ==== | + | **Note:** use '' |
| - | The best way to connect via **ssh** is to create //ssh keys// which authenticate you instead of your password. | ||
| - | First create your private and public keys on your main work computer | + | |
| - | < | + | =====Recommended: |
| + | |||
| + | The **best way** to connect via **ssh** is to create //ssh keys// which authenticate you instead of your password. | ||
| + | |||
| + | First create your private and public keys on your main work computer. These steps assume | ||
| + | < | ||
| ssh-keygen -t dsa | ssh-keygen -t dsa | ||
| </ | </ | ||
| Line 65: | Line 63: | ||
| | // | | // | ||
| - | It is the latter file that you need to add to the // | + | It is the latter file that you need to add to the // |
| From a recent Linux distribution you can simply do this :- | From a recent Linux distribution you can simply do this :- | ||
| <code bash> | <code bash> | ||
| - | ssh-copy-id username@sun.chpc.ac.za | + | ssh-copy-id username@lengau.chpc.ac.za |
| </ | </ | ||
| From older Unix setups you might have to do this :- | From older Unix setups you might have to do this :- | ||
| - | < | + | < |
| - | cat ~/ | + | cat ~/ |
| </ | </ | ||
| And the next time you ssh or scp to the CHPC login node you won't have to use your password! | 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 // | + | ====NOTE: ssh FILE PERMISSIONS==== |
| - | file on the login nodes to make them private and readable by you only before ssh will use the new public key.) | + | |
| + | 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 | ||
| + | </ | ||
| + | |||
| + | **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 Applications==== | ||
| + | |||
| + | Should you prefer a MS Windows application with a GUI | ||
| + | to connect to the CHPC we suggest you download and install the open source | ||
| + | [[wp> | ||
| + | and | ||
| + | [[wp> | ||
| + | |||
| + | ^ Windows Application | ||
| + | | PuTTY | ssh | [[http:// | ||
| + | | WinSCP | ||
| + | | MobaXterm | ||
| + | | Git Bash | Whole unix environment including ssh | [[https:// | ||
| + | |||
| + | ====ssh keys==== | ||
| + | |||
| + | 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: | ||
| + | |||
| + | * [[https:// | ||
| + | * [[http:// | ||
| + | |||
| + | To generate and configure **Git** to use ssh keys please see: | ||
| + | |||
| + | * [[http:// | ||
| + | |||
| + | |||
| + | ====Blocked User Accounts==== | ||
| + | |||
| + | It may be that your account is blocked because of multiple failed logins. | ||
| + | Check if that is so via [[https:// | ||
| + | |||
| + | 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:// | ||