Is there any way to get sshfs to reconnect to a host every 12 hours or so?
I'm using regular (non-kerberos-aware) ssh to connect to a group of
networked machines that uses Kerberos and Kerberized NFSv4 internally.
What this means is that I have to reconnect every 24 hours, in order to
refresh my Kerberos ticket -- or my access to my $HOME directory is
revoked until I ssh in again. sshfs does not detect the problem, since
the connection is alive and well -- it just can't access any files.
So, if I could force a sshfs reconnect behind the scenes every 12 hours,
then everything would work very nicely. Having it detect when a
filesystem is mounted but inaccessible, or having it detect when klist
reports that the tickets are expired would work too.
P.S. I'm programming literate, but not familiar with the sshfs codebase
-- so I can probably code up a solution, if someone will tell me where