This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
guide:connect [2010/08/18 15:35] wikiadmin created |
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 ====== |
| - | ==== Logging In ==== | + | The CHPC hosts a supercomputer comprising: |
| + | * 1008 regular compute nodes with 24 cores and 128 GiB of RAM each; | ||
| + | * 360 regular computes nodes with 24 cores and 64 GiB of RAM each; | ||
| + | * 4 large memory nodes with 56 cores and 1TiB of RAM each; | ||
| + | * 9 [[guide: | ||
| - | The only way to connect to the CHPC machines is via the **ssh** protocol. | ||
| - | ssh -l username login-node.chpc.ac.za | + | =====Host Name===== |
| - | + | ||
| - | where **// | + | |
| - | === Hostnames === | + | All these systems are accessed via a single login node: **'' |
| - | The hostnames and IP addresses for all CHPC login nodes are listed below. | + | ===== Logging In ===== |
| - | ^ System | + | Connection to the login node of the CHPC cluster is via the **ssh** protocol. To connect to the system use |
| - | | IBM e1350 | ssh.chpc.ac.za | chpc.csir.co.za | chpc.uct.ac.za | | + | < |
| - | | SUN systems | + | |
| - | | IBM Blue Gene/P | | | | | + | </code> |
| - | | SUN M9000 | | | | | + | where // |
| - | ==== Transferring Files ==== | ||
| - | Use scp or sftp to transfer files to or from your home directory on the CHPC systems. | + | ===== Dedicated |
| + | A dedicated node, '' | ||
| + | < | ||
| + | scp src.tar.gz username@scp.chpc.ac.za: | ||
| + | </ | ||
| - | scp src.tar.gz username@ssh.chpc.ac.za: | ||
| - | to copy the file // | + | ===== Transferring Files ===== |
| - | ==== MS Windows ==== | + | **Large data sets should be transferred by means of [[howto: |
| - | Should you be unfortunately stuck using a MS Windows computer | + | You can also use scp or sftp to transfer files to or from your home directory on the CHPC systems. |
| - | to connect to the CHPC we recommend | + | < |
| - | use the open source | + | scp src.tar.gz username@scp.chpc.ac.za: |
| - | [[http://en.wikipedia.org/wiki/PuTTY|PuTTY]] | + | </ |
| + | to copy the file // | ||
| + | |||
| + | < | ||
| + | scp src.tar.gz username@scp.chpc.ac.za:/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | If you would like a more user-friendly method, consider [[https:// | ||
| + | |||
| + | **Note:** use '' | ||
| + | |||
| + | |||
| + | |||
| + | =====Recommended: | ||
| + | |||
| + | The **best way** to connect | ||
| + | |||
| + | 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 | ||
| + | <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 | ||
| + | </ | ||
| + | |||
| + | **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://cygwin.com/ | ||
| + | |||
| + | For first-timers there is a nice introduction at [[http://lifehacker.com/ | ||
| + | |||
| + | ====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>PuTTY]] | ||
| and | and | ||
| - | [[http:// | + | [[wp>WinSCP]] clients, or alternatively MobaXterm, which has a free " |
| ^ Windows Application | ^ Windows Application | ||
| | PuTTY | ssh | [[http:// | | PuTTY | ssh | [[http:// | ||
| | WinSCP | | 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:// | ||