F5F Stay Refreshed Software Operating Systems A new issue with SSHFS

A new issue with SSHFS

A new issue with SSHFS

M
MineiroDeAco
Junior Member
38
01-21-2021, 01:35 PM
#1
Hey ya! So here's something damn weird. [email protected]:/ /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
M
MineiroDeAco
01-21-2021, 01:35 PM #1

Hey ya! So here's something damn weird. [email protected]:/ /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

I
Ippogames
Junior Member
5
01-23-2021, 02:58 AM
#2
Install it manually and check for any issues
I
Ippogames
01-23-2021, 02:58 AM #2

Install it manually and check for any issues

S
Swift724
Junior Member
45
01-23-2021, 07:46 AM
#3
I identified the issue. Writing sshfs in fstab causes it to mount using root privileges. Everything seems fine so far. What I wasn't expecting is that the initial SSH handshake between the devices isn't limited to system-wide access—it spans user-level as well. This means you can log into the Pi from your PC's root account after resolving the problem.
S
Swift724
01-23-2021, 07:46 AM #3

I identified the issue. Writing sshfs in fstab causes it to mount using root privileges. Everything seems fine so far. What I wasn't expecting is that the initial SSH handshake between the devices isn't limited to system-wide access—it spans user-level as well. This means you can log into the Pi from your PC's root account after resolving the problem.