First and foremost let me thank zx81roadkill for his excellent description of how to share a folder with another Linux machine on the same home network using sshfs. Everything has worked great for me except the last step "10. Enable reconnect after reboot" which involves modifying the fstab file.
While I can mount (and un-mount) the remote folder manually,
sudo sshfs [email protected]:/home/vanmetter /mnt/HP-2014-home -o allow_other,default_permissions -o identityfile=/home/vanmetter/.ssh/id_rsa
Mounting via the fstab file results in an error when I try to open the remote folder on my local machine.
[email protected]:/home/vanmetter/ /mnt/HP-2014-home fuse.sshfs default_permissions,user,delay_connect,reconnect,ServerAliveInterval=15,ServerAliveCountmax=3,allow_other,identityfile=/home/vanmetter/.ssh/id_rsa,idmap=user,uid=1000,gid=1000 0 0
I have even retyped the entire line to insure no 'special' characters were accidentally copied.
Clicking on the mount point for the remote folder results in a reproducible error as followings:
in Nautilus:
**Oops! Something went wrong.**
Unhandled error message: Error when getting information for file "mnt/HP-2014-home": Input/Output error
in Nemo:
Could not display "/mnt/HP-2014-home".
Error: Error when getting information for file "/mnt/HP-2014-home": Input/Output error
Please select another viewer and try again.
Finally, if the folder is un-mounted, then mounted manually as shown above, everything is working fine (i.e. remote folder opens and all content are accessible).
Any help would be greatly appreciated as I now have a 99% solution to my connectivity needs.
Thanks,
Richard
Here is some further diagnostic information:
fstab contains the line:
[email protected]:/home/vanmetter/ /mnt/HP-2014-home fuse.sshfs default_permissions,user,delay_connect,reconnect,ServerAliveInterval=15,ServerAliveCountmax=3,allow_other,identityfile=/home/vanmetter/.ssh/id_rsa,idmap=user,uid=1000,gid=1000 0 0
after boot (access fails with error):
vanmetter@dell-2018:/mnt$ ls -l
ls: cannot access 'HP-2014-home': Input/output error
total 0
d????????? ? ? ? ? ? HP-2014-home
try manual sshfs mount (fails with error):
vanmetter@dell-2018:/mnt$ sudo sshfs [email protected]:/home/vanmetter /mnt/HP-2014-home -o allow_other,default_permissions -o identityfile=/home/vanmetter/.ssh/id_rsa
[sudo] password for vanmetter:
fuse: bad mount point `/mnt/HP-2014-home': Input/output error
manually un-mount (success):
vanmetter@dell-2018:/mnt$ sudo umount HP-2014-home
vanmetter@dell-2018:/mnt$ ls -l
total 4
drwxr-xr-x 2 root root 4096 Sep 6 06:16 HP-2014-home
manual sshfs mount (success)
vanmetter@dell-2018:/mnt$ sudo sshfs [email protected]:/home/vanmetter /mnt/HP-2014-home -o allow_other,default_permissions -o identityfile=/home/vanmetter/.ssh/id_rsa
[email protected]'s password:
vanmetter@dell-2018:/mnt$ ls -l
total 4
drwxrwxrwx 1 vanmetter vanmetter 4096 Sep 10 07:38 HP-2014-home
remote mount "HP-2014-home" now opens successfully in nautilus and nemo.