This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
guide:connect [2015/08/24 13:14] ischeepers [Transferring Files] |
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 a heterogeneous | + | The CHPC hosts a supercomputer comprising: |
| - | * Westmere cluster (Sun & Dell) x86 | + | * 1008 regular compute nodes with 24 cores and 128 GiB of RAM each; |
| - | * Nehalem cluster x86 | + | * 360 regular computes nodes with 24 cores and 64 GiB of RAM each; |
| - | * Harpertown cluster x86 | + | * 4 large memory nodes with 56 cores and 1TiB of RAM each; |
| - | * M9000 SMP (Sparc-64 V9) | + | * 9 [[guide: |
| - | * Nvidia Quadro FX5600 visualization node (G80 core) | + | |
| - | All these systems are accessed via a single login node **sun.chpc.ac.za**. | + | |
| + | =====Host Name===== | ||
| + | |||
| + | All these systems are accessed via a single login node: **'' | ||
| ===== Logging In ===== | ===== Logging In ===== | ||
| - | Connections | + | Connection |
| < | < | ||
| - | ssh username@sun.chpc.ac.za | + | 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 | | ||
| - | ^ SUN | Primary address | sun.chpc.ac.za | | ||
| + | ===== Dedicated scp.chpc.ac.za ===== | ||
| + | A dedicated node, '' | ||
| + | < | ||
| + | scp src.tar.gz username@scp.chpc.ac.za: | ||
| + | </ | ||
| ===== Transferring Files ===== | ===== Transferring Files ===== | ||
| - | Use scp or sftp to transfer files to or from your home directory on the CHPC systems. | + | **Large data sets should be transferred by means of [[howto: |
| + | |||
| + | 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 // |
| - | ===== Dedicated scp.chpc.ac.za ===== | ||
| - | A dedicated node, '' | ||
| < | < | ||
| - | scp src.tar.gz username@scp.chpc.ac.za: | + | scp src.tar.gz username@scp.chpc.ac.za:/ |
| </ | </ | ||
| + | |||
| + | |||
| + | If you would like a more user-friendly method, consider [[https:// | ||
| + | |||
| + | **Note:** use '' | ||
| + | |||
| + | |||
| =====Recommended: | =====Recommended: | ||
| Line 45: | Line 54: | ||
| The **best way** to connect via **ssh** is to create //ssh keys// which authenticate you instead of your password. | 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 | + | First create your private and public keys on your main work computer. These steps assume |
| < | < | ||
| ssh-keygen -t dsa | ssh-keygen -t dsa | ||
| Line 54: | 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 ===== | ===== Connecting from MS Windows ===== | ||
| Line 83: | Line 145: | ||
| [[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==== | ||
| Line 96: | Line 160: | ||
| * [[http:// | * [[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:// | ||