27
1
I'm running sshfs with the following:
sshfs basicuser@192.168.1.111:/var/www/myapp /home/basicuser/code -o sftp_server="/usr/bin/sudo /usr/libexec/openssh/sftp-server"
I have also created RSA keys so I can log in via ssh without password prompt (I tested this and it works).
I have also added the user to the sudoers file to run the sftp-server without a password:
basicuser ALL=(ALL) NOPASSWD: /usr/libexec/openssh/sftp-server
What could be causing this error? How do I figure that out?
Edit
I am trying to mount a folder on the local computer from the remote server. On the remote server, only root has read/write permissions to that folder.
Remote folder: /var/www/myapp (is root only read/write)
Why do you need
sftp-server
on the server to run as root? – Dan D. – 2014-01-31T23:38:42.887@DanD. The folder that I'll be mounting on the local computer is root-only on the remote server. – Don Rhummy – 2014-01-31T23:57:36.073