This commit is contained in:
counterweight 2023-11-20 15:31:58 +01:00
parent 7a09b6f811
commit 91f9627a9b
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 69 additions and 0 deletions

30
mounting_with_sshfs.md Normal file
View file

@ -0,0 +1,30 @@
If you ever get this error when mounting:
```
fuse: failed to open mountpoint for reading: Too many levels of symbolic links
```
The solution is (got it from here https://blog.luukhendriks.eu/2019/01/25/sshfs-too-many-levels-of-symbolic-links.html)
I've found using sshfs for network mounts to be quite convenient. Especially on
my laptop, which I'm using on various places (i.e. outside of my own home, thus
outside of my own network): mounting `mydomain.nl:/some/path/on/my/server' will
be available to me everywhere, securely, because SSH.
However, in certain situations sshfs can throw an error that left me puzzled
for quite some time, multiple times already.
too many levels of symbolic links
In my case, a fresh key pair on the server turned out to be the cause. The
sshfs was mounted by root (though as a normal user), but root had not connect
to the server after the key refresh. Ergo, the new fingerprint was not seen
before. How this results in an error about symbolic links is beyond me, but it
did. The Arch wiki points this caveat out as well:
And most importantly, use each sshfs mount at least once manually while root so
the host's signature is added to the /root/.ssh/known_hosts file.
Hope this saves someone from the headache it caused me.