Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set global config in /etc/sshfs.conf #290

Open
baryluk opened this issue Dec 25, 2023 · 2 comments
Open

Allow to set global config in /etc/sshfs.conf #290

baryluk opened this issue Dec 25, 2023 · 2 comments

Comments

@baryluk
Copy link

baryluk commented Dec 25, 2023

I often use sshfs on livecd (that I build), or to many other computers, and often need a bunch of parameters (caching, reconnects, keep alive, other_allow, max_conns, etc), every time. I sometimes do create bash aliases or custom script for this, but I sometimes forget.

I would really love to have /etc/sshfs.conf which has extra arguments that are parsed first by sshfs.

Currently it looks like there is no way do do this, other than maybe providing own sshfs script in /usr/local/bin/

sshfs 3.7.3-1.1, Debian testing

@EbiSadeghi
Copy link

If I understand the suggestion correctly, the SSHFS code would check the config file for stuff like max_conns=5, so that you don't have to redo that everytime.

But I am a little confused as to how this suggestion would handle something like SSHOPT ChannelTimeout, as that relates back to ssh config.

I haven't contributed to this repo before, but it seems like a cool suggestion I could take on, just want to make sure I understand the nuances.

@baryluk
Copy link
Author

baryluk commented Apr 13, 2024

If I understand the suggestion correctly, the SSHFS code would check the config file for stuff like max_conns=5, so that you don't have to redo that everytime.

Yes exactly.

For example I usually have -o allow_other -o reconnect -o ServerAliveInterval=7 -o dir_cache=yes -o transform_symlinks , and sometimes also -o max_conns=8 or similar. And put custom wrapper script called sshfs in /usr/local/bin/ so that adds these options, otherwise I do forgot, and then you find hours later that there are issues (like broken mount points).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants