SSH access to Purdue AF¶
Although the web-based JupyterLab interface is the recommended way to access Purdue AF, it is also possible to connect to your session from a terminal via SSH.
To achieve this:
-
Start an AF session in a normal way
- In a web browser, login to Purdue AF and start a session.
-
Obtain an authentication token
- Go to
File -> Hub Control Panel. - Click
Tokentab in top left of the page. - Click
Request new API tokento obtain the token string - you will need it in the next step.
- Go to
-
Log in to your session from external Terminal
- If you are using CERN or FNAL account, remember that your username should include
-cernor-fnalsuffix, respectively. - Instead of password, paste the token obtained in the previous step.
- If you are using CERN or FNAL account, remember that your username should include
-
(Optional) Set up an alias in .bashrc
By adding the following line to
~/.bashrcor~/.bash_profileon you local machine, you can avoid copy-pasting the token every time. Note: you will need to havesshpassutility installed on the local machine.Now simply running the
purdue-afcommand will immediately connect you to Purdue AF, provided that you had already started the session.
Tip
If you encounter any formatting issues while working at Purdue AF via SSH connection
(for example, broken lines in Vim text editor), try running resize command.
Warning
At the moment, the SSH server at Purdue AF does not support SFTP protocol, which means that
you will not be able to use scp commands to download and upload files from your local machine.
Use web interface to download and upload files:
- Uploading can be done by drag-and-dropping files to Jupyter file browser, or by using "Upload" button at the top of the Jupyter file browser window.
- Downloading single files can also be done via drag-and-drop
- To download a directory, right-click on it and select "Download as an Archive"