Community
cancel
Showing results for 
Search instead for 
Did you mean: 
WILLIAM_H_Intel4
Employee
491 Views

How To: copy-file-from-computer-to-devcloud

QUESTION:

when i use scp to transport my file from my computer to the cloud, but it always tells 'lost connection'.

 

ANSWER:

Seems like you are logged in to your Devcloud terminal. You need to go to the local terminal (where you can access the file need to be copied) and do the 'scp' from there.

Please follow the below steps from Devcloud welcome email :

Once your connection is set up, you can copy local files to your login node like this:

[myname@myhomecomputer ~] scp /path/to/local/file colfax:/path/to/remote/directory/

And you can copy files from your login node back to your home computer like this:

[myname@myhomecomputer ~] scp colfax:/path/to/remote/file /path/to/local/directory/

0 Kudos
3 Replies
Davis__Timothy
Beginner
491 Views

I have the same problem, but the posed solution fails.  This process works fine for small files, but I fails on files larger than 5GB or so.  The first 5GB or 7GB gets transfered, and then I get "cat: Connection reset by peer, packet_write_wait: ... broken pipe".

 

Tim Davis

davis@tamu.edu

491 Views

I have tried usual scp command as mentioned in the original post, but the connection timed out

"ssh: connect to host <hostname> port 22: Connection timed out". 

Any advice / example scp cmd that you can share ? 

Thank you, 

Dan_P_Intel
Employee
491 Views

Typically I write something like this:

scp devcloud:<source_path> <destination_path>

or

scp <source_path> devcloud:<destination_path>

The devcloud: prefix comes from the ssh devcloud command used to login and indicates the SSH configuration to use to reach out to the remote path.

Let's say I'm trying to copy readme.txt from the local cwd to the home folder on the DevCloud:

scp readme.txt devcloud:~/

And that's it.

Reply