Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1638 Discussions

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

WILLIAM_H_Intel4
Employee
3,702 Views

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
6 Replies
Davis__Timothy
3,702 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

SankhaSubh_S_Intel
3,702 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, 

0 Kudos
Dan_P_Intel
Employee
3,702 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.

0 Kudos
well
New Contributor I
3,051 Views

I have tried what you suggest by wirting the following command in CMD terminal of my local computer:

C:\Users\user>scp c:\Users\user\Desktop\dataset.csv devcloud:~/

 

 

But it gave me the following error: 

Could not resolve hostname devcloud: No such host is known.

0 Kudos
User01
New Contributor II
2,433 Views

Are the any updates on this? Is it possible to transfer files larger than 5 GB?

0 Kudos
vandana
Employee
1,997 Views

Hi all,

 

I am facing the following issue while trying to copy files using scp. 

ssh: Could not resolve hostname devcloud: Name or service not known
lost connection

Kindly, suggest how to resolve this issue. 

 

P.S. I tried all the above methods and none worked for me.

 

Regards,

Vandana

0 Kudos
Reply