SSHFS – Too Many Levels of Symbolic Links

I’ve found using SSHFS for network mounts to be quite convenient.  Mainly between remote servers and other machines that connect to my host via AutoSSH.  This works relatively well – it seems to maintain a persistent connection when mounted from the command line or at boot, via fstab.  However, there are some caveats, such as this:

from an fstab entry:

root@localhost:/ /media/nuuk fuse.sshfs noauto,x-systemd.automount,_netdev,follow_symlinks,identityfile=/root/.ssh/id_rsa,allow_other,port=11001,default_permissions,reconnect,Compression=no 0 0

might yield this when navigating to the mount point:

fuse: failed to open mountpoint for reading: Too many levels of symbolic links

However, in certain situations SSHFS can throw a peculiar error:

too many levels of symbolic links

In this situation, a fresh key pair on the server and client resolved the issue. The SSHFS was mounted by root, but root had not connect to the server after the key refresh.

Arch Wiki documenting SSFSH


About the author

Lima is the visual nautical indicator for "stop instantly."


Leave a Reply