when i use scp to transport my file from my computer to the cloud, but it always tells 'lost connection'.
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/
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".
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 ?
Typically I write something like this:
scp devcloud:<source_path> <destination_path>
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.
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.
I am facing the following issue while trying to copy files using scp.
ssh: Could not resolve hostname devcloud: Name or service not known
Kindly, suggest how to resolve this issue.
P.S. I tried all the above methods and none worked for me.