From owner-freebsd-questions@FreeBSD.ORG Wed Sep 5 17:38:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CCCC1065676; Wed, 5 Sep 2012 17:38:55 +0000 (UTC) (envelope-from orientalsensation@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id EBC8C8FC1A; Wed, 5 Sep 2012 17:38:54 +0000 (UTC) Received: by iebc12 with SMTP id c12so1990255ieb.13 for ; Wed, 05 Sep 2012 10:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=nin1t0DjpQ8Y2WCWkCL9px7wCD7f2T0ctuv+AphHIAg=; b=ntb93mM5U9gteHC9kju328aSZAd5l5z2MZ2bNhZVTP4PDZUw5O8LxN8XrJowKL/RWd OIgvaGPj2ax4E/HtzjDCWhcjAiPFPQZlnEhOOLc6SduNgpYqHK5blAJAK2whggndNfaf K7cbSjTH23viU+cyrqyomFScusBbEzyPBqtQPUp4kFskJ1HEVaJ0HJtc07+3Ln4IcwDq 2pZMIf88ud1XVAmeCDkVG4zQHFaQeZcFkBJ9gWExF2p/Q4JAn1OVo0McZo7lyb9ebnGp Ygt3sm36tSV+JWrRBKFHh5uU/4K/n4JrJsg+M6MZn3biX53doc+FvLPfBDC9C+hQCEZ3 2kaA== MIME-Version: 1.0 Received: by 10.50.160.233 with SMTP id xn9mr19089398igb.37.1346866734500; Wed, 05 Sep 2012 10:38:54 -0700 (PDT) Sender: orientalsensation@gmail.com Received: by 10.64.81.226 with HTTP; Wed, 5 Sep 2012 10:38:54 -0700 (PDT) Date: Wed, 5 Sep 2012 19:38:54 +0200 X-Google-Sender-Auth: fwvXIjLpxt-LY7KpynAirVnwW_o Message-ID: From: OriS To: freebsd-questions@freebsd.org, freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Auto-mounting sshfs from /etc/fstab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2012 17:38:55 -0000 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