MobaXterm copy file from local to server

Presumably you are running this in a local MobaXterm shell (i.e. local to the windows machine). If that is the case, you need to update the scp command syntax to accommodate that environment, although the syntax is incorrect regardless.

Show

MobaXterm provides access to local drives in it's shell via the mountpoint /drives/X, with X being the windows drive letter.

Additionally, the (simplified) general syntax of scp, regardless of environment is:

scp usage:

scp [[user@]host1:]/path[/filename] [[user@]host2:]/path/[filename]

The first sequence ([[user@]host1:]/path[/filename]) is the 'FROM' section; the source of the file or files to be copied. The second is the 'TO'; the destination. The brackets indicate optional arguments.

It is really just an ssh enabled version of the standard cp command; with the section prior to the : containing the ssh specific information, and the info afterwards pertaining to the cp operation.

user:

user defaults to your current, local username - it can be left out if that is the correct user name in both the source and destination.

host:

host defaults to the local computer (localhost); so if you are copying to / from the local machine AND the username on localhost to be used is the current user, you can omit that argument for the local file(s).

file / path:

path/filename defaults to the specified users home directory and it can be omitted if that's desired. filename can be left out when doing a recursive copy as in your situation - just provide the path in that case. Generally the full path and filename is specified in the FROM section, and just the path in the TO section (it will default to keeping the same filename).

I'm using remoteuser and remotePC as the username and remote PC host name; replace with the correct names.

Correct syntax in your example:

 scp -r "/drives/C/Users/Andrea/Documents/Betrivius/candycane-0.9.6/candycane" remoteuser@remotePC:/home6/XXX/public_html

Use the command man scp or this site for additional details (arguments, other usage info).

GUI Option

Alternatively, MobaXterm provides a graphical file browser (built on sftp or scp based on configuration options) which provides drag and drop bi-directional file transfers when you have connected to the remote host via ssh. Details here.

You can also use scp for other data transfer applications including HPC to local PC, between HPCs, and between PCs. To transfer files from Lawrence to your PC, (while not logged in to Lawrence) simply switch the two paths in the scp command (numbers 2 and 3), and move the filename to the end of the first path. If needed, change "usd.local" to the reference for your institution.

MobaXTerm FTP Browser

On Windows, if MobaXTerm is being used to connect the cluster, the file browser built into it can be used to quickly upload or download files. Once logged into the cluster, a view will appear on the left hand side of the screen showing a list of files. To download, click a file to select it and then click the blue download arrow at the top of where the files are displayed. Multiple files can be downloaded at once by holding the control key and selecting multiple files and then pressing the same download button. To upload files, click the green upload arrow at the top of where files are displayed (next to the download arrow) and select the files to be uploaded. Be aware that this process is destructive and will overwrite anything on the destination machine with the same name as the uploaded file.

This method should not be used for file transfers in excess of 50 GB – please see “Globus” section below if this is the case.

scp

scp is an alternative to the MobaXTerm method that can be used if on Mac or Linux. It’s a built in command with the syntax:

scp

where the source and destination are located on different servers. For example, to download a file from R2 to your current directory on your local machine, you would use:

scp (R2 username)@r2-login.boisestate.edu:(name of file) .

To upload you would use:

scp (name of local file) (R2 username)@r2-login.boisestate.edu:(destination file)

For Borah, replace the server with:

(Borah username)@borah-login.boisestate.edu

Be aware that this process is destructive and will overwrite anything on the destination machine with the same name as the uploaded file. This method should not be used for file transfers in excess of 50 GB – please see “Globus” section below if this is the case.

Globus

Globus is recommended for large (> 50GB), routine data transfers. Unlike copy, SCP, SFTP, etc. Globus transfers will recover from errors caused by network/host interruptions, so it’s a “fire and forget” service.

To get started using Globus, use the instructions below to login. Use the Globus File Manager to begin using the transfer services between existing endpoints.

You can also download the client software called Globus Connect Personal to create a personal endpoint for sharing data that’s on your computer or downloading data directly to your computer. When you do this, you will give your endpoint a name and search for that endpoint in the Globus File Manager.

While we give some basic instructions below, please email if you want to use Globus to share data on your computer with an outside collaborator.

Log in to Globus Using Your Boise State Credentials

  1. Go to www.globus.org
  2. Click Login (upper right)
  3. Find Boise State University in the organization dropdown list
  4. Enter your Boise State username and password in the standard Boise State login screen.
  5. Once logged in, you’ll be directed to the Globus “File Manager” screen.

Using File Manager to Transfer Data between Existing Endpoints

The Globus File Manager interface is similar in look to something like Filezilla.  You select two endpoints, highlight files/directories, and copy them.  When in the File Manager screen, you can search for the Boise State Primary and Secondary endpoints listed below and transfer/copy files between them.

If your data is on an OIT Research Share, please contact Research Computing so we can help make it available on the Globus-VM endpoint for transfer to other existing endpoints. Or, if your data is on your desktop, see instructions “C. Installing a Personal Endpoint” or contact Research Computing, and we can help.

Primary Boise State Endpoints

  • Globus-VM (connected to Boise State’s network)
  • Borah-DTN (connected to Borah at C3 in Idaho Falls)
  • DTN-R2 (connected to R2 at CCP in downtown Boise)

Using Globus Personal Endpoint to Transfer Data from Your Desktop to Existing Endpoints

1.  Install Globus Personal Connect by going to: https://www.globus.org/globus-connect-personal

    • Windows: https://docs.globus.org/how-to/globus-connect-personal-windows
    • macOS:    https://docs.globus.org/how-to/globus-connect-personal-mac
    • Linux:       https://docs.globus.org/how-to/globus-connect-personal-linux

2.  Log in using Boise State username and password. NOTE: Do not mark computer as having sensitive personal files

3.  Follow the instructions of step B, except change the Research Share collection to the new personal collection that was created when setting up Globus Personal Connect.

For more information, visit Globus’s documentation contents page https://docs.globus.org/how-to/ or email .

Rclone

Coming soon.