i'm trying to use sshfs on ubuntu. i have root access on the server i'm trying to connect to. but everytime i try to connect using my ubuntu laptop, the message i get is the following:
cp@cp-AOA150:/$ sudo sshfs root@myserver:/ /home/cp/Documents/myserverfolder/ read: Connection reset by peer cp@cp-AOA150:/$
i'm not too familiar with ubuntu / linux but could the problem be that the key that's on the server is not for the user "cp"?
If this is the case, how do i set up the root account on ubuntu?
any suggestions would be appreciated.
btw. i can ssh into the box no problems, but as root. so in other words, this works:
i've copied over my key file from work onto this new laptop. it's just sshfs that isn't happy right now. thanks.
When I run sshfs with debug options like so:
cp@cp-AOA150:~$ sshfs -o sshfs_debug -p 22 firstname.lastname@example.org:/ /home/cp/Documents/myserverfolder/
I get the following error message:
SSHFS version 2.4 fusermount: user has no write access to mountpoint /home/cp/Documents/myserverfolder/ cp@cp-AOA150:~$
I've checked the permissions on the folder myserverfolder and it looks like this: (results of ls -la command)
drwxr-xr-x 2 root root 4096 Mar 19 17:11 . drwxr-xr-x 4 cp cp 4096 Mar 19 17:11 ..
I've ensured that the user cp is a part of the fuse group.
cp@cp-AOA150:~$ sudo addgroup cp fuse [sudo] password for cp: The user `cp' is already a member of `fuse'. cp@cp-AOA150:~$
Results of ls -ld
cp@cp-AOA150:~$ ls -ld /home/cp/Documents/myserverfolder drwxr-xr-x 2 root root 4096 Mar 19 17:11 /home/cp/Documents/myserverfolder cp@cp-AOA150:~$
I'm not too familiar yet with linux but i did try to create a file in this folder using vim. I wasn't able to save the file... I think I created the folder using the "sudo " prefix to the mkdir command... because when i try without sudo, i get a "permission denied" error message. I'm going to google "chmod" to see how i can grant permissions to cp on this folder.