Re: Auto-mounting sshfs from /etc/fstab

2012-09-06 Thread OriS
Hello,

Well, no I haven't -- I have tried only the fstab route which does serve
the purpose for me.

Thanks nonetheless :)

OriS

On Wednesday, September 5, 2012, andrew clarke wrote:

 On Wed 2012-09-05 19:38:54 UTC+0200, OriS (
 site.free...@orientalsensation.com javascript:;) wrote:

  I've been trying to find a page on the Internet where an example is
 posted
  explaining how to mount sshfs from /etc/fstab, but I can't find any!

 Have you tried running sshfs from cron?  eg. run crontab -e as a
 regular user and add:

 @reboot  /usr/local/bin/sshfs remotehost: $HOME/mnt/remote

 Note: Untested.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Auto-mounting sshfs from /etc/fstab

2012-09-05 Thread OriS
Hello all,

I've been trying to find a page on the Internet where an example is posted
explaining how to mount sshfs from /etc/fstab, but I can't find any!

I'm on 9.1-PR amd64 and I've installed Fuse and sshfs, I have enabled Fuse
in rc.conf and I can see /dev/fuse. Furthermore, using sshfs from the
command line, I am even able to mount the remote file system.

I can manually mount the remote file system using:

*sshfs user@host:/ /mnt*

Then, I do 'mount -p' and get:

*/dev/fuse0  /mnt  fusefs.sshfs  rw,sync  0  0*

This isn't sufficient for mounting/unmounting from fstab since it's missing
the authentication details I've used in sshfs.

So.. the question is: How to add the authentication details to /etc/fstab
so that I can mount the sshfs just by using:

*mount /mnt*

Thanks in advance, and kindly Cc me on your replies!

/OriS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org