Support Questions
Find answers, ask questions, and share your expertise

how to access the local windows file from virtualbox to use in SCP command

Explorer

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

1 REPLY 1

Re: how to access the local windows file from virtualbox to use in SCP command

Super Mentor

@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...

.