|
Article ID: 232
Last updated: 25 Mar, 2026
NAS supercomputers are served by several front-end systems within the secure enclave. These include:
By investing some time to set up SSH passthrough, you can make your future NAS logins and inbound file transfers to these systems easier and faster. The SSH passthrough feature allows you to log into any of the front-end systems by typing just one SSH command.
In other words, if you set up SSH passthrough, you can SSH directly from your local system to a NAS system as if you were directly connected, even though all connections are transparently passing through the SFEs. SSH Connection Timeouts: SSH connections to front ends inside the enclave are disconnected after 15 minutes of inactivity. For more information, including best practices for minimizing the impact to your interactive sessions, see Using the Screen or tmux Commands. How To Set Up SSH PassthroughAt this point, you are just three steps away from streamlining all of your future logins and inbound file transfers. With SSH passthrough, you will be able to log in quickly to any host in the secure enclave, and you will be able to copy files from your local system to any NAS host. Before You Begin: If you have not already done so, complete the steps for first-time login to NAS systems. Step 1: Create/Modify the .ssh/config File on Your Local SystemYou must have a ~/.ssh/config file on your local system to enable SSH passthrough. The file should include entries for the hosts you want to access inside the NAS enclave. TIP: Although you can create a customized version of the ~/.ssh/config file, we recommend downloading and using the ssh_config.txt template attached at the end of this page.
This template should work for Mac, Linux, or Windows systems; for Windows, it will work only through the use of Windows Subsystem for Linux (WSL) or MobaXterm. If you are not using WSL or MobaXterm, you will need to modify this template by replacing ssh with ssh.exe in all of the ProxyCommand lines. Move the file to the .ssh directory on your local system, and uncomment and replace <nas_login_name> with your NAS username. For example, if your username is zsmith, replace <nas_login_name> with zsmith. If you already have an existing file named config, rename it to a different name. Then, choose one of the following two approaches to use this template:
The contents of the current ssh_config.txt template are shown below. In this template, sfe6 is used; in the event that sfe6 is unavailable, or if you want to use a different SFE for SSH passthrough, you can switch to sfe[7-8].
WARNING: Your .ssh/config file should be set with no group/others write permission. Otherwise, you will get this error message when you connect:
Bad owner or permissions on /u/your_local_username/.ssh/config. Once you have created your config file, test to confirm it's working by logging into a PFE as follows:
If the file is configured properly, you will be prompted for your NAS password once, and for your RSA SecurID passcode twice. You can continue to streamline your logins and file transfers further by completing steps 2 and 3. You will then be able to log in with just your RSA passcode. Step 2: Create and Copy OpenSSH Public Key to Hosts Inside the EnclaveBefore You Begin: Follow the steps in Setting Up Public Key Authentication to create an SSH public/private key pair and to initialize the SSH public key on the SFEs. Then, complete these steps to copy your public key to the hosts inside the enclave and place the key in your .ssh/authorized_keys file. The examples in these steps use a PFE. Note: This must be done for both a PFE and an LFE inside the enclave to which you want to connect using SSH passthrough.
Step 3: Set Up SSH AgentThe ssh-agent program holds and manages the private key on your local system and responds to key challenges from remote hosts. The private key is not initially stored in the agent and is added through the ssh-add program. Typically, ssh-agent is started at the beginning of an X session or a login session, and you provide your passphrase to unlock your private key for this originating session. For any SSH connection to a remote host (for example, sfeX) made from this original session, the ssh-agent remembers your private key and will respond to challenges automatically without prompting you to type in your passphrase again. Run one of the following command lines to launch ssh-agent:
To add your private key to ssh-agent, run:
Example:
Once you've completed these steps, you can now SSH from your local system to a NAS system inside the secure enclave, and be prompted for only your RSA SecurID passcode. Note: If you get the following error when starting ssh-agent from a terminal on Windows 10, the most likely reason is that the ssh-agent service is set to disabled state:
To resolve this error, set the service to start manually in the Services GUI or run the following command in admin mode:
Attached files
|