70181d9215218f3cd1f347fb4fdeb6088e393e8b
Addresses audit findings from 2026-04-19: - Q-H1: replace Println with Printf for %s-formatted error (line 42) - Q-H2/Q-M2/Q-M3: verify_mount_dir and mount_sshfs now return error; main exits on failure instead of continuing with invalid state - Q-M1: default Port to "22" when ssh_config has no entry - S-M1: create mount dir with 0700 instead of 0777 - S-M2: filepath.Clean + base-prefix check rejects HostName values that would escape ~/Servers/ - Q-L1: correct "~/.ssh_config" typo to "~/.ssh/config" Also: use os.Exit(2) for usage error (was 80), route user-facing errors to stderr.
Quickly mount remote systems via SSHFS based on your ssh_config
Static mount dir is currently ~/Servers/<Host>
Install
Arch Linux (Moonarch repo)
Available in the Moonarch package repository as sshfsc-git:
paru -S sshfsc-git
From source
go build -o sshfsc
install -Dm755 sshfsc /usr/local/bin/sshfsc
Dependencies
Usage
sshfsc <Host>
Arguments
| Flag | Description |
|---|---|
| -e | open mountpoint in your editor |
Editor Sublime-Text (subl) is currently hardcoded. See
Example ssh config
See https://wiki.archlinux.org/title/OpenSSH#Configuration
Host myserver
HostName 127.0.0.1
User sshusername
IdentityFile ~/.ssh/id_rsa
Languages
Go
100%