Re: command to start sshfs at bootup?
On Saturday 17 April 2021 19:01:10 Dan Ritter wrote:
> Gene Heskett wrote:
> > Greetings all;
> >
> > Bringing up a new machine on my local network and I've forgotten
> > how, in buster, to start sshfs at bootup?
>
> /etc/fstab:
>
> user@host:/remote/folder /mount/point fuse.sshfs
> noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home
>/user/.ssh/id_rsa,allow_other,reconnect 0 0
>
> You don't need all of those options -- in particular, you don't
> want noauto and you do want an IdentityFile option.
>
> -dsr-
I just checked this machine and 4 others, all of whom are mounted to
their own named directory as subdirs of /sshnet, which work perfectly
without a mention of it in any machines /etc/fstab. Adding the new
machine as the last line in this $HOME/bin/mount-machines bash script:
------------
#!/bin/bash
sshfs gene@sixty40.coyote.den:/ /sshnet/sixty40
sshfs gene@lathe:/ /sshnet/lathe
sshfs gene@GO704:/ /sshnet/GO704
sshfs pi@rpi4:/ /sshnet/rpi4
sshfs gene@TLM:/ /sshnet/TLM
sshfs gene@3dprint:/ /sshnet/3dprint
--------------
Thats 5 machines that Just Work, and the last says:
read: Connection reset by peer
sshfs has been installed, but its not running. How do I start it?
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: