LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sshfs to mount VPS hosted site on Linux Mint (https://www.linuxquestions.org/questions/linux-newbie-8/sshfs-to-mount-vps-hosted-site-on-linux-mint-4175585718/)

ramsforums 07-28-2016 10:05 AM

sshfs to mount VPS hosted site on Linux Mint
 
I have a VPS Hosted website. I used to mount directly on my linux laptop and it was working. Past 3 months I never used and suddenly when I tried today it is not working.

I used to use the following command to mount

Code:

sudo sshfs -o idmap=user root@1x8.2xx.78.x3:/  /mnt/netdrive
upon issuing the above command, password prompt appears and authenticated. But when I access drive I get error

See the screen short

http://i.imgur.com/9kRnJPO.png




Code:

robert@develop /mnt $ cd /mnt
robert@develop /mnt $ sudo ls -l
[sudo] password for robert:
total 4
drwxr-xr-x 1 root 500 4096 May 23  2015 netdrive



if I try

Code:

ssh root@1x8.2xx.78.x3
It works fine.

May I request your help. Why I am unable to mount?

Thanks

descendant_command 07-29-2016 03:02 AM

Because you are running it as root (with sudo) so your regular user doesn't have permission to access it.

Run the sshfs command as your regular user and mount it somewhere in your own home dir, say ~/netdrive or such.

Also, make sure your user is in the 'fuse' group.

ramsforums 07-29-2016 03:44 AM

Quote:

Originally Posted by descendant_command (Post 5582836)
Because you are running it as root (with sudo) so your regular user doesn't have permission to access it.

Run the sshfs command as your regular user and mount it somewhere in your own home dir, say ~/netdrive or such.

Also, make sure your user is in the 'fuse' group.

Thank you. Solved. Appreciate.:)

It used to work before. I do not know why it suddenly stopped working.


All times are GMT -5. The time now is 11:42 PM.