Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mount | grep /media/MountedDir
sshfs#root@192.168.2.4:/ on /media/MountedDir type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,_netdev)
If I call `sudo mount -a` with this in /etc/fstab, using a GUI [non Ctrl+Alt+F1..F6] I get a popup asking me to input my password (has bars on the bottom that change color when I type a character) that doesn't even work if I put in the right password. It'll just popup again. Have to reboot or killall ssh sshfs [from a tty] or something like that to get rid of it.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
to start you need too set up public/privare keys so you dont use a passowrd , more importantly i dont think this is going to work as disks are mounted from the fstab at boot time before the network is up.
maybe add the commands to /etc/rc.local or whatever your system uses as a user defined start up script.
I've done the
ssh-copy-id root@192.168.2.4
so I can use sshfs command without using password.
Some fstab options I've used:
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).
--
Just tried removing the 'delay_connect' option and it looks like that may have worked for getting things to work with `sudo mount -a`, but it didn't help with it mounting on reboot. Looks like I have to enter my password to get it to mount through fstab, eventhough I can mount it without password using the 'sshfs' command.
Last edited by BryanFRitt; 05-15-2015 at 07:24 PM.
Reason: added the works but...
I found some scripts that help mount/unmount when the network goes up/down. http://ubuntuforums.org/showthread.php?t=430312
These scripts requires the line requires the additon of comment=sshfs to the option section of the fstab line, and in some cases maybe the GID=, and UID= options too.
(and maybe instead of sshfs# style use fuse.sshfs didn't look to into, but that seamed to have maybe helped)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.