You will need to download sshproxy to your local machine to avoid frequent two-factor authentication requests. To use sshproxy, you need to do sshproxy -u <UserName>
. You may benefit from adding the sshproxy
executable to your system PATH
to make your life easier.
Once downloaded, copy the path to where the sshproxy executable file lives.
Go to the Windows search function and type in "env" and click on "edit the system environmental variables"
Navigate to the "Advanced" tab then click on "Environment Variables".
Click on New under User variables then paste the path to sshproxy.exe under "Variable value" and give this variable a name. This will make your life much easier later on!
You will need to execute sshproxy.exe from the command line in your Windows machine (not by launching the software itself!). For instance, if you haven't already, install Cmder as noted in 🪟Windows Notes . Once downloaded, right-click on the Cmder application that is in the folder and select "Run as administrator". Once loaded, run:
sshproxy.exe -u <nersc_username> -p
Since you added the sshproxy.exe folder path to your environment variables, this allows you to just type "sshproxy.exe" instead of giving the full path to the executable. After entering your NERSC credentials, this will create a private PuTTY key on your local machine that is . To activate the key, run:
pageant.exe C:\Users\username\.ssh\nersc.ppk
Now your key-pair is activated, and .