TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: CHRIS GREEN
from: THEO
date: 2021-02-17 21:24:00
subject: Re: Adding VS Code to Pi

Chris Green  wrote:
> However there's a few places (in particular my hosting provider) where
> I have ssh access but don't have the option of getting my favourite
> editor installed (and there other useful utilities missing as well) so
> for those I sometime mount them locally using sshfs.

The thing I don't like about sshfs is that if the connection drops (for
example, laptop sleep or changing wifi network) you're left with a mount
that hangs - it doesn't unmount, and it doesn't try to reconnect, it's just
a zombie.  It can hang programs that try and access files in there.

According to a stackexchange answer the thing to do is
sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3

which doesn't exactly trip off the tongue.  I'll try it.

The unmount command is
fusermount -u
which is also non-obvious.

Theo

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.