Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 04-07-2016 10:14 AM
I am trying to copy a data file from my Mac to my Sandbox using scp. I have successfully created a directory named "/data" on the Sandbox vm using the root user account. My scp command looks like this:
scp -P 2222 mydatafile.csv [email protected]:/data
I type in the root password, and scp appears to transfer the file. When I look in the /data directory on the Sandbox vm, the file isn't there.
Created 04-21-2016 06:22 PM
I cheated to get it working properly. I simply added a static IP Address to my Sandbox VM, using a second Host-only adapter on vboxnet0. Now I can use a real IP Address when specifying the target for scp, and it works fine now. Thank you for all the suggestions!
Created 04-07-2016 11:34 AM
So, I assume "ssh -p2222 [email protected]" works? Can you check permissions "ls -ld /data" and try to scp to /tmp.
Created 04-07-2016 11:38 AM
Please try below command on your sandbox
scp <username>@<ip-of-mac>:$path/mydatafile.csv $local_path_on_sandbox
Created 04-07-2016 09:05 PM
@Kuldeep Kulkarni - It worked for me. Thanks!
Created 09-10-2016 04:38 PM
This did not work for me. Do you have a user on your Mac with the same name as a user on your Sandbox? Is your VM on Azure or on your machine?
Created 03-08-2017 07:47 PM
Yep, this worked for me -- from sandbox to mac, but still can't go the other direction. Thanks!
Created 04-07-2016 12:16 PM
Can you check on sandbox
#ls -l /data
Are you sure you have created /data directory .. usually default root home direcotry is /root so , see if data directory is under /root .. I just did that in my sandbox and it works fine for me
MacBook-Pro-7:~ rguruvanagari$ scp -P 2222 id_dsa [email protected]:/root/data
[email protected]'s password: id_dsa 100% 672 0.7KB/s 00:00
MacBook-Pro-7:~ rguruvanagari$ scp -P 2222 id_dsa [email protected]:/data
[email protected]'s password: id_dsa
[root@sandbox /]# ls -l /data
-rw------- 1 root root 672 Apr 7 05:12 /data
[root@sandbox /]# ls -l /root/data
total 4
-rw------- 1 root root 672 Apr 7 05:11 id_dsa
Created 04-11-2016 02:43 PM
I cheated to get it working properly. I simply added a static IP Address to my Sandbox VM, using a second Host-only adapter on vboxnet0. Now I can use a real IP Address when specifying the target for scp, and it works fine now. Thank you for all the suggestions!
Created 04-21-2016 06:22 PM
I cheated to get it working properly. I simply added a static IP Address to my Sandbox VM, using a second Host-only adapter on vboxnet0. Now I can use a real IP Address when specifying the target for scp, and it works fine now. Thank you for all the suggestions!