In addition to the original Login Mode, the NCCS Bastion Service now supports Proxy Mode, which can be used to streamline access to internal NCCS systems, including discover, dirac, and dali, and facilitates easier file transfer via SCP.
Use one of the two methods described below to log into the NCCS resources:
-XY for trusted X11 forwarding is a secure way of running X applications via ssh to your local screen. For Windows Putty users, make sure you choose ssh protocol 2 and enable X11 forwarding in your configuration.
You will be asked to authenticate your access using your RSA SecurID authentication, which is your given PIN followed by a six-digit TOKENCODE shown in your SecurID key, and then initiate the login process to the NCCS computing systems using your NCCS password:
Note that no host prompt will appear if using the second "ssh" command shown above.
Once you are inside the system environment, you may ssh to other NCCS systems without entering the PASSCODE. For example, you can "ssh dali" from Discover passwordlessly.
Note that system login via the Bastion Service Proxy Mode, which will be described below, applies to command-line users only.
Once you are authorized, then you need to establish a configuration step below, which will enable you to connect directly to NCCS systems via the bastion.
For command-line users, create a file, $HOME/.ssh/config,
on your system as the following.
You only need to substitute the user_id below with your login id.
Also, you can leave out any host that you are not using, or not authorized to
access.
Once you create "config" file, make sure the permission of the $HOME/.ssh directory is set up as inaccessible by anyone except you, i.e.,
Now you will be able to simply SSH or SCP to
any of the hostnames following "host" in the above
$HOME/.ssh/config file, for example,
Ensure that for the passcode you enter a freshly generated SecureID token code, i.e., one that has at least a couple of bars of life left.
NCCS consolidates most of the NCCS computing resources to use a single NCCS password. You may change your password by one of two methods:
Please follow the new NCCS password policy, including
If you fail to change your NCCS password before your current one expires, the systems will prompt you to change your password immediately upon login. Please contact the NCCS User Services Group (mail to support@nccs.nasa.gov) should you need more information or request assistance to reset your NCCS password.
File transfer using the Bastion Service Proxy Mode is highly recommended because of the security reason. You must be authorized for proxied access. For first-time users, please contact the User Services Group (support@nccs.nasa.gov) for authorization request.
For Command-line users:First make sure you have already completed a configuration step for proxied connections. Then you can transfer files, such as data sets or application files, directly to Discover/Dali or the archive system, Dirac. Note that Discover and Dali share the same global file systems.
For example, from your workstation you can do the following:
You will be asked to provide both your PASSCODE and your NCCS password for all the scp commands.
1. Configure WinSCP as shown below and any other settings that you desire, and then save the session.

| Hostname | NCCS-HOSTNAME e.g., discover.nccs.nasa.gov or dali.nccs.nasa.gov or dirac.nccs.nasa.gov or discover-nastran.nccs.nasa.gov |
| Username | your user id |
| Password | _LEAVE_BLANK |
| Advanced Options | make sure to click to select |

| Proxy Type | local |
| Local Proxy Command | "C:\\Program Files\\PuTTY\\plink.exe" -pw %pass -l %user %proxyhost direct %host (This assumes that plink.exe is found under C:\\Program Files\\PuTTY. Also note that "-l" in the command above is a "dash lowercase L". ) |
| Username | your user id |
| Password | _LEAVE_BLANK |
| Proxy Hostname | login.nccs.nasa.gov |
| Do DNS name lookup at proxy end | Yes |
Note: A WinSCP feature request that asks for WinSCP to prompt for the proxy password if it is left blank is currently being tracked as bug #468, however the original bug was filed in 2009 so it's unclear how much traction it has at the moment.
Jobs in the datamove queue run on a cluster gateway node that has access to external, archive, and cluster-wide file systems. Once the data is on a file system visible to the compute nodes, the compute jobs using these data can be executed. The results of the compute jobs can be saved back out to the archive or the external user system using another datamove job.
Therefore, you can submit the three jobs (two datamove jobs and one compute job) all at once, and then use PBS's dependency attribute to make one job depend on the completion of other jobs. See PBS Chain Jobs with Dependencies section for a sample script submitting jobs with dependencies.
For more details regarding data transfer, please refer to the Your Data page.
You can SSH or SCP within the NCCS systems without typing the NCCS password by setting up authorization keys. For example, to passwordlessly SCP or SSH from Discover to Dirac, use the following steps:
1. On Discover, create a new authorized_keys file under HOME/.ssh.
Hit enter two times for the prompted questions. This will create a pair of private and public identity files, id_dsa and id_dsa.pub, under the .ssh directory.
2. Copy the file id_dsa.pub into authorized_keys in the same directory. If the file authorized_keys already exists on the system, append the contents of id_dsa.pub.
3. Copy the contents of id_dsa.pub file from Discover to Dirac:
4. On Dirac, append the copied file to the authorized_keys file:
Once the authorized_keys file is in place on both Dirac and the NCCS HPC systems, you can start using passwordless SCP and SSH.
BASH is the default shell on Discover. If you want to change to another shell, either contact the NCCS User Services Group or try the "chsh" command.
To work temporarily within another shell, execute the appropriate command. The shells available are, to name a few, bash, csh, ksh, sh, tcsh, and zsh.
All shells have some type of script files that are executed at login time to set environmental variables (such as PATH and LD_LIBRARY_PATH) and perform other environmental setup tasks. The table below lists some common shells and the startup files that might require edits for setting up your personal environmental variables.
| Shell | Startup file to edit |
|---|---|
| sh or ksh | $HOME/.profile |
| bash | $HOME/.bashrc if it exists; or $HOME/.bash_profile if it exists; or $HOME/.profile if it exists (in that order) |
| csh | $HOME/.cshrc |
| tcsh | $HOME/.tcshrc if it exists; or $HOME/.cshrc if there is no .tcshrc |
Here we include two example shell startup files, one .bashrc and one .cshrc:
To ensure the changes in your .profile or .bashrc to take effect, invoke ". .bashrc".
After editing your .cshrc file, you must issue the command "source .cshrc" for your changes to take effect.
The NCCS provides several different types of file systems, including Home File System, Nobackup, Scratch, and Archive system.
For users, the HOME and NOBACKUP file system is controlled by quotas. To determine your resource usage and how it compares to your quota, type the showquota command:
The right hand side of the output show this:
This output shows the quotas for a user in file system "dhome" set (the user's $HOME) to a soft limit of 1GB, a hard limit of 1.2GB, and 351,312 KB being currently used by the user.
The quotas for the user in file system "dnb31" set (the user's $NOBACKUP; "nb" stands for "no backup") to a soft limit of 1TB, a hard limit of 1.2TB. As soon as the user has exceeded the soft limit, the countdown to the grace peroid (total 7 days) starts. The output shows that there are 4 days left for the user to bring his usage below the soft limit quota value. If the user fails to do so within 4 days, the soft limit becomes the hard limit and the user would not be allocated any more space.
Under the "dhome" set, there are 1,620 files currently allocated to this user, but no soft or hard limt for file numbers (inodes) is enforced in $HOME. Under the nobackup fileset, however, the soft limit for files (inodes) is 100,000 and hard limit is 150,000. A grace period appears because the user has exceeded his quota. The user has 3 hours left now to bring his usage below the 100,000 inode value. If the user fails to do so, the user is not allocated any more space.
The rest of the "showquota" output displays the quota information for group(s) the user belongs to.
To find individual usage, you can always cd to directory and use the command "du". For example, to show the total usage of the current directory in KB:
If the limits imposed by quotas are a problem for you, please send an e-mail to the User Services Group (support@nccs.nasa.gov ). Indicate how much more space you will require, where the increase is required (e.g. /nobackup, /archive, /home), and why the increase request is being made.
From Discover:
To access the crontab use this command:
This will allow you to edit your crontab.
Here are examples of crontabs.
The third example shows how to run a command or script on Dali nodes to take advantage of their large memory.
As shown above, standard output is redirected with
1> or 1>>. Standard
error is rediected with
2>. To write/overwrite a file use >, to
append to a file use >>.
The last two examples show how to set up emailing standard output and standard error to the user. Be careful, however, if the standard output or standard error is large (which may happen if the job does not run as expected), the mail daemon would have problems delivering the email, which fills up /var on the node and may cause problems with the node.