IgnorantGuru / udevil

Mount without password
http://ignorantguru.github.com/udevil/
GNU General Public License v3.0
129 stars 30 forks source link

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

Open pirmd opened 8 years ago

pirmd commented 8 years ago

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 commented 8 years ago

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.)