Created on 01-23-2018 09:12 PM - edited 09-16-2022 05:46 AM
I am trying to use this command to copy local file to virtualbox
scp ~/users/ell/pdfprint.dat root@sandbox-hdp.hortonworks.com:/tmp
I am getting root/users/ell/pdfprint.dat not exists, looks like it is going to using guest directory
Created 01-23-2018 11:48 PM
@laki cheli
I prefer the following approach more using "sshfs"
[root@sandbox tmp]# yum install fuse sshfs -y [root@sandbox tmp]# modprobe fuse [root@sandbox tmp]# ssh-copy-id -i ~/.ssh/id_rsa.pub jsensharma@Your_Local_Machine_IP [root@sandbox tmp]# sshfs -o IdentityFile=~/.ssh/id_rsa jsensharma@Your_Local_Machine_IP:/Users/jsensharma/Shared_Folder_1 /Sandbox_Dir/Shared [root@sandbox tmp]# fusermount -u /Jay/Shared [root@sandbox tmp]# sshfs -o IdentityFile=~/.ssh/id_rsa jsensharma@Your_Local_Machine_IP:/Users/jsensharma/Shared_Folder_1 /Sandbox_Dir/Shared
.
Another approach is described in the following article:
https://community.hortonworks.com/articles/44601/mount-virtualbox-shared-folder.html
Other HCC reference: https://community.hortonworks.com/questions/129957/shared-folder-between-host-and-guest-os-sandbox-h...