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

Support ssh_config(5) data to mount ssh/sshfs share #64

Open
pirmd opened this issue Dec 4, 2015 · 1 comment
Open

Support ssh_config(5) data to mount ssh/sshfs share #64

pirmd opened this issue Dec 4, 2015 · 1 comment
Labels

Comments

@pirmd
Copy link

pirmd commented Dec 4, 2015

It seems that at the time being udevil mount does not allow fetching connection data from .ssh/config file, maybe because parse_network_url tries to get_ip from the Host keyword name linking to .ssh/config entry believing it to be the host address.

Sorry if I miss something and misuse the udevil mount scheme with ssh

@IgnorantGuru
Copy link
Owner

udevil is a front-end for mount, which in turn mounts sshfs via its mount helper. For it's own security checks (determining what the user may do based on udevil.conf), udevil must have the real hostname or IP on the command line. Otherwise it would need to lookup the address in ssh's configuration files, which at present it doesn't do. No real plans to add that.

You might consider using a shell alias instead, a properly installed script to run udevil the way you want, or use the system hosts file.

Also, unless you really do need to mount sshfs as root in your situation (what udevil does), you can also run sshfs directly as a normal user to create a fuse mount, instead of going through udevil.

Also note when using ssh config files in general, mounting ssh via udevil will use root's ssh config file in /root/.ssh/, not the config file of the user running udevil. (udevil always runs mount as root, so root's config files are used by sshfs.)

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

No branches or pull requests

2 participants