#SSHFS

Multi Purr Puss :verified:platymew@layer8.space
2025-07-10

@raineer htop indicates a single-threaded load - that might be it.

SSH might use a single-threaded cipher, which would make sense for a single "serial" connection.

context: i'm still reluctant to set up samba. Even more context; i'm trying to optimise #sshfs, but i might be hitting the crypto barrier.

Multi Purr Puss :verified:platymew@layer8.space
2025-06-09

I'm using #SSHFS via fstab, in #KDE / #KDEneon. Every time Dolphin touches the trash:/ on sshfs Dr. Konqi generates a kioworker crash report.

Perhaps i need better mount options?

sshfs#user@host.lan:/path/ /mnt/point/ fuse defaults,noauto,user,cache=no 0 0

edit: adding _netdev doesn't help, and Compression=yes slows things to a USB2 kind of crawl

(It works good enough, so i'm not doing things wrong enough. I won't be setting up samba.)

Marcus Adamsgerowen
2025-05-27

Today I learned you can use to auto mount a directory over SFTP such that it appears like a local directory to desktop userland applications. I've noticed that some applications don't like letting you save files directly to GVFS or other locations for network folders mounted by the user, but SSHFS just uses SFTP and can run at boot via fstab to make a network mount look like a local folder. Very handy for sharing folders with VMs in a transparent manner.

Multi Purr Puss :verified:platymew@layer8.space
2025-05-23

Today, for the 1st time, i've transferred files onto the #Linux #NAS / #HomeServer at over 700MB/s (in htop)! 🀩

Source: Ryzen 7840HS, RAM-cached(?), Samsung 990 Pro 2TB NVMe, with LUKS

Target: i5-7500, spinning #ZFS mirror, 2x SATA Toshiba MG09, consumer grade NVMe SLOG mirror, ZVOL with LUKS

Via: #SSHFS over 10gig ConnectX-3, SFP+ DAC, cheap Chinese Realtek switch, one of the CX3 runs via an ASMedia ASM2464PD #Thunderbolt / #USB4 bridge.

I'm pretty chuffed with the #crypto throughput. πŸ€“

2025-04-21

I'll skip the rant and just tell you the result: I am looking into alternatives for #Nextcloud. All I really need is access to files on a homeserver from #GrapheneOS. I have not yet found an #sshfs client that works for me, so now I'll try #DAVx5 with the #WebDAV module of #nginx ...

😞 j'ai des déconnexions quand je pousse les backups en #ssh via #borg
Testons avec un montage #sshFS

2025-03-30

@michal

One neat thing about #Syncthing vs #sshfs: with Syncthing you can limit which device is allowed to sync which folders. Useful if you need to sync a folder with a device you don't entirely trust.

2025-03-27
Further down this rabbit hole.
Sorry for the noise, but the more I go deeper, the worse it looks like, and I need to vent to people who might understand.

The #SFTP specification version 3, section 7 actually provides the number of links of each file the "longname" of the SSH_FXP_NAME response:

The SSH_FXP_NAME response has the following format:

uint32 id
uint32 count
repeats count times:
string filename
string longname
ATTRS attrs
[...]
`longname' is an expanded format for the file name, similar to what
is returned by "ls -l" on Unix systems
[...]
The format of the `longname' field is unspecified by this protocol.
It MUST be suitable for use in the output of a directory listing
command (in fact, the recommended operation for a directory listing
command is to simply display this data).
So far so good: we should have the info we need (at least from unix servers) despite in an unfortunate textual format.

The specification also states that such long name MUST not be parsed and clients should rely on the binary attributes that follow, except that the same specification forgot to include st_nlink (maybe because not all operating system supports such info).

However let assume that we ignore that argument and patch sshfs to read and parse such text just to provide the proper st_nlink.

Will #OpenSSH properly implement the specification?

NO! It doesn't! 😭

Let's give it a try:

sftp> cd test
sftp> ls -l
-rw-r--r-- 2 tesio users 0 Mar 26 20:34 copy
-rw-r--r-- 2 tesio users 0 Mar 26 20:34 file
sftp> ls -l *
-rw-r--r-- ? 115209 100 0 Mar 26 21:34 copy
-rw-r--r-- ? 115209 100 0 Mar 26 21:34 file
It turns out that the sftp-server from OpenSSH handles ls -l differently when it is received without any argument or with an argument.

In the first case (no argument) the request comply to the specification.
In the second, it does not, apparently for no reason (the ls_file function receives remote = 1).

So to properly fill st_nlink in #sshfs, for any file we should sent an additional SSH_FXP_READDIR request to the server for the parent directory, find our file of interest within the list of files and extract the number of links from its longname.

And we are talking about OpenSSH!

Guys... I wanna cry.

CC: @rozenglass@fedi.dreamscape.link @grunfink@comam.es @khm@hj.9fs.net @Velveteen@labyrinth.zone
2025-03-27
Went a little down this rabbit hole and wrote an update to that issue and the related one on st_nlink.

The problem is not caused by #sshfs (or by the #fuse library), but by the #SFTP protocol itself that doesn't provide access to the underlying inode and provides access to the number of links only from version 06 while most server implementations (including #OpenSSH) are based on version 02.

Sad to see that in 2016 a developer contributed to OpenSSH a patch to provide such info as an extension attribute (a mechanism available at that protocol version) but the patch was not accepted (or, apparently, considered).

CC: @grunfink@comam.es @khm@hj.9fs.net @Velveteen@labyrinth.zone
2025-03-23

Irgendwie hat #KDE Plasma / Dolphin bei mir gerade richtig probleme mit #sshfs . Keine Ahnung was das Problem sein soll...

2025-03-14

On/Off-Skript zum Einbinden entfernter Server mit sshfs. Mit yad-MenΓΌ und optionaler systemd-UnterstΓΌtzung.

codeberg.org/CarstenHa/mntmysr

#linux #shell #bash #coding #programming #ssh #sshfs #mntmysrvr

2025-03-03

Ever wondered how to edit your code with VSCodium on your LAN (remote SSH)?
The alternative plugin does not work on a jail unfortunately or even on some installs....

The solution is to install sshfs and mount the repositories remote. The user and group permissions need to be set correctly.
But the manual helps doing that. Works very nicely!

#VSCodium #SSHfs #repository

Phillip Vuchetichphilvuchetich@bsd.network
2025-02-19

Which remote file access options(s) do you use (or would recommend) over a cellular + VPN connection?

Use case: I am reassessing the best options for my remote access to NAS files over cellular + VPN (#OpenVPN, #Wireguard) with anticipated 10 to 50 Mbps connectivity speed.

Typical use is working on documents, spreadsheets, source code, one-way backup of phone pictures. For my use, automatic synchronization with the NAS is more important than speed because the NAS handles backups.

I am leaning toward setting up #Syncthing again because it would also work well for offline use. For this poll, I am considering #SSHFS, #SMB, and #NFSv4 are using direct access to the NAS with no local storage (yes more latency, but probably acceptable) instead of adding rsync between the PC and NAS over one of those network file systems.

The following options have worked in the past on the various OS that I have needed to use:

Why shouldn't I use #sshfs for sharing my Mini-NAS drive to my network machines? Should I jump thru all the hoops and setup #Samba (yes there is a windows machine in the mix, albiet WinP11Pro so could use #NFS) but I have sshfs-win winfsp.dev installed already πŸ˜…

Setting up NFS would be a good thing to learn though πŸ€”

Veronica Olsen πŸ³οΈβ€πŸŒˆπŸ‡³πŸ‡΄πŸŒ»veronica@mastodon.online
2024-12-29

Anyone have any experience with SSH crashing when Plex accesses a share via SSHFS? I've set it up with auto mount now, so it fixes itself when I restart the episode, but it's interfering with my lazy days watching Stargate SG-1. 😁

I guess I could try to set it up with something else, but I stream a lot of data back and forth from my PC to the Synology NAS, and it's never been a problem except for when using Plex.

#Linux #Synology #NAS #SSH #SSHFS #Plex

Multi Purr Puss :verified:platymew@layer8.space
2024-12-20

🧡 1/n
finally benchmarking the battery life of my #Lenovo #IdeaPad Miix 510-12IKB + the #Sandberg 420-75 USB-C PD #powerbank. 🍻 This photo was taken at ~8 hours of runtime. (πŸ‘€ see also pic alt text)

Setup:
πŸ‘‰ tablet and powerbank was fully charged
πŸ‘‰ 100% display brightness, muted audio
πŸ‘‰ 1080p/<10mbps HEVC playing looped in VLC
πŸ‘‰ via iAX210, Wi-Fi 5/5gig AP, #sshfs for Windows
πŸ‘‰ "default AC plugged in" power profile

Currently: tablet still fully charged, powerbank at 22%, duration is 8:25 hours

The little blue thing is a USB-C PD decoy/trigger board, feeding my tablet at 20 volts - i've talked about that in a recent toot. (I've also blurred the reflection of my naked torso, for your convenience - you're welcome. ;)
Multi Purr Puss :verified:platymew@layer8.space
2024-12-07

#rsync my recently updated Steam library to the NAS:

β†’ 454 GB work load
β†’ only 107 GB transferred
β†’ 4.6x speed-up
β†’ from #NVMe #NTFS to an #sshfs mount point
β†’ saturated 2.5gig LAN a few times

EDIT:
β†’ spinning HDD mirror backend
β†’ #ZFS settings & layout in pic2 & pic3 πŸ‘€
β†’ the #SATA solid state write cache got utilised quite nicely

rsync end stats: 107 GB of actual files went over the wirethe ZFS settings of my backup datasetthe layout of my ZFS mirror - "spinning rust" + SATA SSD caches
Kevin Karhan :verified:kkarhan@infosec.space
2024-11-27

@tokyo_0 #TrueCrypt is #abandonware with serious security issues.

  • DO NOT USE TRUECRYPT FFS!!!

Use #VeraCrypt or even better: migrate machines to #Linux and use #LUKS / #dmcrypt instead, as it's the best option at hand.

github.com/kkarhan/windows-ca-

2024-11-14

Gibt es eigentlich #sshfs fΓΌr #Android? #Termux hat's nicht.

Thorsten Leemhuis (acct. 2/4)knurd42@social.linux.pizza
2024-11-11

Do you run into errors like the following when using (1) #sshfs to mount the fs of a host that you (2) later #ssh into where your local ssh config (3) enables a ControlMaster for multiplexing and also (4) forwards something?

"""
mux_client_forward: forwarding request failed: remote port forwarding failed for listen path [...]
muxclient: master forward request failed
ControlSocket /home/[…] already exists, disabling multiplexing
"""

This happens because sshfs (rightfully) sets "ClearAllForwardings". Here are two options to avoid this:

* add "ssh_command='ssh -o ControlMaster=no'" to your sshfs call

* add "ssh_command='sshfsssh'" to your sshfs call and create a executable file "sshfsssh" somewhere in your path with code like the following, which will create the ControlMater before mounting:

"""
#! /bin/bash
for option in "$@"; do
if [[ "${option:0:1}" == "-" ]] || [[ "${option}" == "sftp" ]]; then
continue
fi
# FIXME: this seems to work, but I wonder if there is a more reliable way to retrieve the host without checking options
likely_host="${option}"
done

# briefly connect to host to initialize ControlMaster including forwarding
ssh -n "${likely_host}" :
ssh "$@"
"""

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst