// File Transfer from a User to ADAPT

For Command-Line Users

In standard bastion configurations, you can run the following from your terminal: $ scp /my/file.txt userid@adaptlogin.nccs.nasa.gov:/target/directory

You will be asked to provide both your PASSCODE and your NCCS Password for all scp commands.

If rsync is available on your client, it might be a better alternative to scp because say if there is a network issue, you can still finish a given transfer (and it should work with the standard bastion configuration for ssh). For example: $ rsync -av --progress --partial /my/file.txt userid@discover.nccs.nasa.gov:"/target/directory"

If the file transfer fails and --partial is set, the target file will be named as the actual file name (i.e. FileYouAreSending.txt), even though the file isn't complete. You can later complete the transfer by running rsync again with either --append or --append-verify: $ rsync -av --progress --append /my/file.txt userid@discover.nccs.nasa.gov:"/target/directory"

For more assistance with either of these commands run "man scp" or "man rsync" to see their manual pages.

MobaXterm

MobaXterm is recommended for Windows users because its built in scp/rsync is similar to Linux/MacOS configurations.

Download MobaXterm

1) If you have not yet enabled local terminal in Moba: Go to settings -> Misc , and select "Terminal" for the "Open the following tab at startup" field. Click OK. If Moba requires a plug-in download, it will prompt you for it. Once downloaded, restart your Moba. Now you should see a terminal upon launch within the application window.

2) The new plug in will allow you to use scp, rsync, and other file copy utilities. You may verify if you can use the utility by running: "man scp", or "man rsync". This will open the manual pages for the commands, which will provide further documentation for the command entered.

3) Test the file transfer by running either: $ scp /my/file.txt userid@adaptlogin.nccs.nasa.gov:/target/directory
$ rsync -av --progress /my/file.txt userid@adaptlogin.nccs.nasa.gov:"/target/directory"

It will ask for your credentials (RSA Token and NCCS Password) and display the transfer status. Now ssh to adaptlogin in Moba and verify that the file was transferred successfully.

For WinSCP users


Download and install WinSCP on your PC. Launch the tool and fill in the required information. These screenshots can guide you through.

Required Information:

Hostname: adaptlogin.nccs.nasa.gov
Username: UID

Then, the next pop window box will ask for your PASSCODE then your Password

PASSCODE: RSA Tokencode
Password: NCCS LDAP Password





Enter your RSA Tokencode then the next screen will ask for your password.

To upload files or folders on your hosting account you just need to navigate to the desired file or folder on the left side panel, right click on the item you want to upload and click Upload to your ~/home. Or you can just drag and drop from left to right and vice versa the desired file.




To download navigate to the location of the file or folder you want to download from the right side panel, right click the desired item and select Download -> Download. Or you can draw and drop from the host server to your desktop desired folder.




FileZilla


The process for using FileZilla is similar to the process for WinSCP. Download and install FileZilla on your PC. Launch the tool and fill in the required information.

Required Information:

Hostname: adaptlogin.nccs.nasa.gov
Username: UID

Then, the next pop window box will ask for your PASSCODE then your Password

PASSCODE: RSA Tokencode
Password: LDAP nccs password