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. MobaXterm provides access to local drives in it's shell via the mountpoint Additionally, the (simplified) general syntax of scp, regardless of environment is: scp usage:
The first sequence ( It is really just an ssh enabled version of the standard cp command; with the section prior to the user:
host:
file / path:
I'm using Correct syntax in your example:
Use the command GUI OptionAlternatively, 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 BrowserOn 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. scpscp 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:
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:
To upload you would use:
For Borah, replace the server with:
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. GlobusGlobus 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
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
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
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 . RcloneComing soon. |