Created 02-07-2017 08:47 AM
I have successfully scp a file from the local machine to the sandbox. Now i would like to do the reverse but facing the problem "no such file directory". I have written this second command in the VM terminal
The port I used is 22 (The guest port for the service "Host SSH") as you can see on the picture "guestport.png"
Does the path to my local machine well written?
Thanks
Created 02-07-2017 08:52 AM
Hi @Oriane,
If you succeeded in one way, you can slightly modify the command to do it the other way around.
Let's say your command to SCP a file to your sandbox was:
scp -p 22 myfile root@sandbox:/tmp
Then you can retrieve the file from the same place with:
scp -p 22 root@sandbox:/tmp/myfile .
As an additional remark, if you are running under Windows, you can use some GUI tools like WinSCP to ease the process.
Hope this helps.
Created 02-07-2017 09:36 AM
Thanks Pierre for your response.
I am facing a problem today with the port 22. Unable to transfer from local machine to VM and reverse.
Yesterday , i trasnfer to the sandbox using the port 2122 and it works , but today facing "the port 22 connection refused".
Excuse me , i am a newbie.
Created 02-07-2017 09:37 AM
If I recall correctly the sandbox is using port 2222 as default port for SSH (and consequently scp).