Jump to content

Hey ya!

So here's something damn weird.
 

pi@192.168.13.3:/                               /mnt/pi         fuse.sshfs      delay_connect,IdentityFile=/home/arokan/.ssh/id_rsa,idmap=user,port=13,rw,uid=1000,gid=1000,nosuid,nodev,_netdev,allow_other,default_permissions,reconnect 0 0

This is the fstab-entry for my pi.
It has worked for many months until yesterday, the pi quit it's job and I reinstalled the os.
I added .ssh-folder and everything else I need and this entry doesn't work anymore.

ls ./pi -> returns input/output error

 

sudo umount pi &&

sudo mount pi &&

ls ./pi -> returns input/output error

 

Now, what doesn't return input/output error and appears to work is

mount ./pi

 

Somehow the command doesn't work under sudo, which is quite unfortunate since fstab works under the root user.

 

I was hoping somebody here had the same problem fixed or knows how to do it.

 

Many thanks in adv.

Arokan

Link to comment
https://linustechtips.com/topic/1403742-another-sshfs-problem/
Share on other sites

Link to post
Share on other sites

I found the error.

So if you write sshfs in your fstab, it tries to mount it as root.
So far so good.
What I didn't anticipate is that the first handshake over ssh between the systems is not system- but user-wide.
Which means: login into the pi from my PC's root account once brought the solution.

Link to comment
https://linustechtips.com/topic/1403742-another-sshfs-problem/#findComment-15208424
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×