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 user@127.0.0.1:/var/www /home/username/Desktop/remote/ -o identityFile=/home/username/.ssh/id_ed25519
nautilus ssh://user@127.0.0.1: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
ls -la /var/www
. It looks like a permissions problem. – Kev Inski Sep 21 '21 at 09:42sudo 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. – Faraz Durrani Sep 22 '21 at 21:02