Score:0

How to create a shortcut of a remote folder?

se flag

I have ubuntu-server running in VirtualBox. This VirtualBox is running on (L)ubuntu 20.04.

I want to create a shortcut for a folder present inside ubuntu-server within VirtualBox. I want to be able to access content of this folder from outside the virtual box (the host OS).

edit1: I was able to ssh into the folder via a GUI and also ssh-mount it using sshfs.

sshfs -p 3022 [email protected]:/var/www /home/username/Desktop/remote/ -o identityFile=/home/username/.ssh/id_ed25519

nautilus ssh://[email protected]:3022 &

But the problem is, I cannot view the content inside remote folder /var/www/

How can I resolve it? I have tried nautilus-admin to no avail.

edit2:

I checked permissions inside the remote directory and this is the output:

root@user-ubuntu-server:/# ls -la /var/www
total 16
drwxr-xr-x  4 root     root     4096 Aug 13 00:27 .
drwxr-xr-x 14 root     root     4096 Aug 12 14:59 ..
drwxr-xr-x  2 root     root     4096 Aug 12 23:46 html
drwxr-x---  5 www-data www-data 4096 Aug 13 04:08 your_domain
Kev Inski avatar
us flag
I would [ssh-mount](https://askubuntu.com/questions/412477/mount-remote-directory-using-ssh) the folder into the host
Faraz Durrani avatar
se flag
I edited my question. Can you please take a look?
Kev Inski avatar
us flag
please add the output of your servers `ls -la /var/www`. It looks like a permissions problem.
Faraz Durrani avatar
se flag
Can you please check edit 2?
Faraz Durrani avatar
se flag
I just needed to run `sudo chmod -R 777 /var/www/your_domain/`. It may be too dangerous to give all the permissions, but for me it's allright. Problem solved.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.